Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- web:
- container_name: minicasepostgres
- image: fab/minicase-postgres
- hostname: web
- volumes:
- # Mind the order. e.g.: logs before config, so as to catch errors on the host instead of the container.
- # For my own convenience
- - /Users/fabien/LocalDevUbuntuPostgres/tmp-fab:/tmp-fab
- # For supervisor
- - /Users/fabien/LocalDevUbuntuPostgres/logs/supervisor:/var/log/supervisor
- # Postgress volumes
- # - /Users/fabien/LocalDevUbuntuPostgres/postgresconfig:/etc/postgresql # CONFIG
- # - /Users/fabien/LocalDevUbuntuPostgres/logs/postgresql:/var/log/postgresql # LOG
- - /Users/fabien/LocalDevUbuntuPostgres/postgresdata:/var/lib/postgresql # DATA
- # RUN THE CONTAINER:
- # cd /Users/fabien/Dropbox/DEV/Docker/images/minicase-postgres
- # docker-compose up -d
- # STOP:
- # docker-compose down
- # ENTER ITS BASH:
- # docker exec -it minicasepostgres /bin/bash
- # Check the supervisor log:
- # tail /var/log/supervisor/supervisord.log
- #
- # Restart postgres:
- # /etc/init.d/postgresql restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement