Created
December 24, 2019 10:30
-
-
Save Eduard-gan/9a7f22752fc39c592687c87fe97066e3 to your computer and use it in GitHub Desktop.
Forever running docker container with docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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