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.
20 lines
491 B
20 lines
491 B
version: '3'
|
|
services:
|
|
postgres:
|
|
image: postgres:9.6
|
|
environment:
|
|
- POSTGRES_PASSWORD=1234
|
|
- POSTGRES_USER=postgres
|
|
|
|
web:
|
|
build: .
|
|
restart: always
|
|
volumes:
|
|
- .:/lilcity
|
|
command: bash -c "python manage.py migrate && python manage.py loaddata /lilcity/apps/*/fixtures/*.json && python manage.py runserver 0.0.0.0:8000"
|
|
environment:
|
|
- DJANGO_SETTINGS_MODULE=project.settings
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- postgres |