44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
|
version: "3.8"
|
||
|
|
||
|
services:
|
||
|
django:
|
||
|
build: .
|
||
|
container_name: django
|
||
|
command: python archivist/manage.py runserver 0.0.0.0:8000
|
||
|
volumes:
|
||
|
- .:/app/
|
||
|
ports:
|
||
|
- "8000:8000"
|
||
|
environment:
|
||
|
- DEBUG=1
|
||
|
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
|
||
|
- CELERY_BROKER=redis://redis:6379/0
|
||
|
depends_on:
|
||
|
#- pgdb
|
||
|
- redis
|
||
|
celery-worker:
|
||
|
build: .
|
||
|
command: celery --workdir archivist/ -A core worker -l INFO
|
||
|
volumes:
|
||
|
- .:/app/
|
||
|
environment:
|
||
|
- DEBUG=1
|
||
|
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
|
||
|
- CELERY_BROKER=redis://redis:6379/0
|
||
|
depends_on:
|
||
|
- django
|
||
|
- redis
|
||
|
celery-beat:
|
||
|
build: .
|
||
|
command: celery --workdir archivist/ -A core beat -l INFO
|
||
|
volumes:
|
||
|
- .:/app/
|
||
|
environment:
|
||
|
- DEBUG=1
|
||
|
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
|
||
|
- CELERY_BROKER=redis://redis:6379/0
|
||
|
depends_on:
|
||
|
- django
|
||
|
- redis
|
||
|
redis:
|
||
|
image: "redis:alpine"
|