You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
600 B

version: '3'
services:
db:
image: postgres
restart: always
volumes:
- /dbdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: c1secret2qbc
POSTGRES_DB: weontheme
PGDATA: /var/lib/postgresql/data/dbfiles
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

Powered by TurnKey Linux.