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.
66 lines
1.6 KiB
66 lines
1.6 KiB
version: '2'
|
|
services:
|
|
|
|
db:
|
|
restart: always
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_USER: 'dokumentor'
|
|
POSTGRES_PASSWORD: 'dokumentor'
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
|
|
rabbitmq:
|
|
restart: always
|
|
image: rabbitmq:latest
|
|
environment:
|
|
RABBITMQ_DEFAULT_USER: 'dokumentor'
|
|
RABBITMQ_DEFAULT_PASS: 'dokumentor'
|
|
ports:
|
|
- "8080:15672"
|
|
- "5672:5672"
|
|
- "5671:5671"
|
|
|
|
celery:
|
|
build:
|
|
context: .
|
|
dockerfile: compose/Dockerfile.web.local
|
|
command: bash -c 'cd src && celery -A dokumentor worker -l info -E'
|
|
volumes:
|
|
- .:/code
|
|
env_file: conf/env
|
|
environment:
|
|
DJANGO_DB: 'postgres://dokumentor:dokumentor@db:5432/dokumentor'
|
|
REDIS_URL: 'redis://redis:6379/1'
|
|
CELERY_BROKER_URL: 'amqp://dokumentor:dokumentor@rabbitmq:5672//'
|
|
CELERY_RESULT_BACKEND: 'amqp://dokumentor:dokumentor@rabbitmq:5672//'
|
|
links:
|
|
- db
|
|
- rabbitmq
|
|
- redis
|
|
|
|
redis:
|
|
image: redis:latest
|
|
ports:
|
|
- '6379:6379'
|
|
|
|
web:
|
|
restart: always
|
|
build:
|
|
context: .
|
|
dockerfile: compose/Dockerfile.web.local
|
|
command: bash -c 'python src/manage.py runserver 0.0.0.0:8000'
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- "8000:8000"
|
|
env_file: conf/env
|
|
environment:
|
|
DJANGO_DB: 'postgres://dokumentor:dokumentor@db:5432/dokumentor'
|
|
REDIS_URL: 'redis://redis:6379/1'
|
|
CELERY_BROKER_URL: 'amqp://dokumentor:dokumentor@rabbitmq:5672//'
|
|
CELERY_RESULT_BACKEND: 'amqp://dokumentor:dokumentor@rabbitmq:5672//'
|
|
depends_on:
|
|
- db
|
|
- rabbitmq
|
|
- redis
|
|
|