Skip to content

Instantly share code, notes, and snippets.

@kooba
Last active August 29, 2015 14:23
Show Gist options
  • Save kooba/a64737c94c7031460cc1 to your computer and use it in GitHub Desktop.
Save kooba/a64737c94c7031460cc1 to your computer and use it in GitHub Desktop.
web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
volumes:
- web:/usr/src/app
env_file: .env
command: /usr/local/bin/gunicorn mycms.wsgi:application -w 2 -b :8000
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- /www/static
volumes_from:
- web
links:
- web:web
postgres:
restart: always
image: postgres:latest
volumes_from:
- data
ports:
- "5432:5432"
data:
restart: no
image: postgres:latest
volumes:
- /var/lib/postgresql
command: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment