Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: mdillon/postgis:9.6-alpine
- volumes:
- - ./postgres-data:/var/lib/postgresql/data
- django:
- build:
- context: .
- dockerfile: docker/Dockerfile
- environment:
- - DJANGO_SETTINGS_MODULE={{config.module}}
- - SECRET_KEY={{secretkey}}
- - NAME={{dbusername}}
- - USER={{dbuser}}
- - HOST={{dbhost}}
- - PASSWORD={{password}}
- - PORT=5432
- volumes:
- - .:/application
- command: ["gunicorn", "--bind 0.0.0.0:8000", "config.wsgi"]
- depends_on:
- - db
- ports:
- - "8000:8000"
Add Comment
Please, Sign In to add comment