diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5978a5e --- /dev/null +++ b/docker-compose.yml @@ -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" \ No newline at end of file