Advertisement
Guest User

docker-compose.yml (minicase postgres)

a guest
Aug 2nd, 2017
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.02 KB | None | 0 0
  1. web:
  2.   container_name: minicasepostgres
  3.   image: fab/minicase-postgres
  4.   hostname: web
  5.   volumes:
  6.    # Mind the order. e.g.: logs before config, so as to catch errors on the host instead of the container.
  7.  
  8.     # For my own convenience
  9.     - /Users/fabien/LocalDevUbuntuPostgres/tmp-fab:/tmp-fab
  10.  
  11.     # For supervisor
  12.     - /Users/fabien/LocalDevUbuntuPostgres/logs/supervisor:/var/log/supervisor
  13.  
  14.     # Postgress volumes
  15.     # - /Users/fabien/LocalDevUbuntuPostgres/postgresconfig:/etc/postgresql # CONFIG
  16.     # - /Users/fabien/LocalDevUbuntuPostgres/logs/postgresql:/var/log/postgresql # LOG
  17.     - /Users/fabien/LocalDevUbuntuPostgres/postgresdata:/var/lib/postgresql # DATA
  18.  
  19.  
  20.  
  21.  
  22. # RUN THE CONTAINER:
  23. # cd /Users/fabien/Dropbox/DEV/Docker/images/minicase-postgres
  24. # docker-compose up -d
  25. # STOP:
  26. # docker-compose down
  27. # ENTER ITS BASH:
  28. # docker exec -it minicasepostgres /bin/bash
  29.  
  30.  
  31.  
  32.  
  33. # Check the supervisor log:
  34. # tail /var/log/supervisor/supervisord.log
  35. #
  36. # Restart postgres:
  37. # /etc/init.d/postgresql restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement