Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- volumes:
- my_data:
- services:
- db:
- build:
- context: ../../
- dockerfile: myenv/docker/postgres/Dockerfile
- image: myapp_db
- volumes:
- - db_data:/sss/postgresql/data/
- expose:
- - '5432'
- app:
- build:
- context: ../../
- dockerfile: myenv/docker/app/Dockerfile
- image: myapp_app
- # need to wait for db. gunicorn ip 0.0.0.0
- command: /wait_for_it.sh db:5432 -t 0 -- gunicorn --workers 8 --timeout 120 --worker-class gaiohttp -b 0.0.0.0:8000 myapp.wsgi
- volumes:
- - my_data:/data
- - /logs
- expose:
- - "8000"
- depends_on:
- - db
- environment:
- DJANGO_SETTINGS_MODULE: 'myapp.settings.docker'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement