Created
May 19, 2019 18:36
-
-
Save eduzen/aa4fb1e1bd1d235c655288be7a144a4f to your computer and use it in GitHub Desktop.
docker-compose for django app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
volumes: | |
pgdata: | |
services: | |
web: | |
build: . | |
command: python manage.py runserver_plus 0.0.0.0:8000 | |
volumes: | |
- .:/code | |
ports: | |
- "8000:8000" | |
links: | |
- postgres | |
- wdb | |
depends_on: | |
- postgres | |
environment: | |
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE} | |
- SECRET_KEY=${SECRET_KEY} | |
- DB_USER=${DB_USER} | |
- DB_NAME=${DB_NAME} | |
- DB_PASS=${DB_PASS} | |
- DB_PORT=${DB_PORT} | |
- DB_SERVICE=${DB_SERVICE} | |
- DEBUG=${DEBUG} | |
- WDB_SOCKET_SERVER=wdb | |
- WDB_NO_BROWSER_AUTO_OPEN=True | |
postgres: | |
image: postgres:alpine | |
restart: always | |
volumes: | |
- pgdata:/var/lib/postgresql/data/ | |
wdb: | |
image: kozea/wdb | |
ports: | |
- "1984:1984" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment