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.
 
 
 
 
 
 

29 lines
618 B

version: '3'
services:
db:
image: postgres:10-alpine
environment:
- LANG=ru_RU.UTF-8
- POSTGRES_DB=lilcity
- POSTGRES_USER=lilcity
- POSTGRES_PASSWORD=GPVs/E/{5&qe
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
web:
build: .
restart: always
volumes:
- .:/lilcity
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
environment:
- DJANGO_SETTINGS_MODULE=project.settings
- DATABASE_SERVICE_HOST=db
ports:
- "8000:8000"
depends_on:
- db
links:
- db