Add: basic docker-compose file

This commit is contained in:
Aroy-Art 2023-08-24 18:14:45 +02:00
parent d43f414be6
commit 06b493726b
Signed by: Aroy
GPG key ID: 583642324A1D2070

44
docker-compose.yml Normal file
View 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"