Skip to content

Instantly share code, notes, and snippets.

@Eduard-gan
Created December 24, 2019 10:30
Show Gist options
  • Save Eduard-gan/9a7f22752fc39c592687c87fe97066e3 to your computer and use it in GitHub Desktop.
Save Eduard-gan/9a7f22752fc39c592687c87fe97066e3 to your computer and use it in GitHub Desktop.
Forever running docker container with docker-compose
recovery:
build: build/postgres/
container_name: recovery
network_mode: bridge
hostname: recovery
restart: always
command: tail -f /dev/null
volumes:
- ./build/postgres/postgresql.conf:/etc/postgresql/postgresql.conf
- ./build/postgres/backup.py:/opt/scripts/backup.py # Скрипт отвечающий за бэкапы на вольюм бэкапов.
- postgres_persist:/var/lib/postgresql/data/pgdata
- postgres_backups:/backups
env_file: global_env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment