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.
37 lines
835 B
37 lines
835 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"
|
|
|
|
redis:
|
|
image: redis:3-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
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 && celery worker -A project"
|
|
environment:
|
|
- DJANGO_SETTINGS_MODULE=project.settings
|
|
- DATABASE_SERVICE_HOST=db
|
|
- REDIS_SERVICE_HOST=redis
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
links:
|
|
- db
|
|
- redis |