|
|
- version: '3'
-
- services:
-
- db:
- image: postgres
- restart: always
- volumes:
- - ./pgdata:/var/lib/postgresql/data
- environment:
- POSTGRES_PASSWORD: c1secret2qbc
- POSTGRES_DB: weontheme
- ports:
- - 5432:5432
-
- django:
- build: ./docker_django
- command: >
- sh -c "python manage.py wait_for_db &&
- python manage.py migrate &&
- python manage.py runserver 0.0.0.0:8000"
- restart: always
- volumes:
- - /vagrant:/etc/project
- ports:
- - 80:8000
- depends_on:
- - db
-
|