Add: basic docker-compose file
This commit is contained in:
parent
d43f414be6
commit
06b493726b
1 changed files with 44 additions and 0 deletions
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
|
@ -0,0 +1,44 @@
|
|||
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"
|
Loading…
Reference in a new issue