80 lines
2.2 KiB
YAML
80 lines
2.2 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
django:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-Dev
|
|
args:
|
|
- USER_ID=1000
|
|
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
|
#container_name: django
|
|
command: >
|
|
sh -c "cd archivist
|
|
&& python manage.py runserver 0.0.0.0:8000"
|
|
volumes:
|
|
- .:/app/
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
#- DJANGO_SETTINGS_MODULE=core.settings.production
|
|
- DEBUG=1
|
|
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] northpaw.aroy.hs.tun:8000
|
|
- CELERY_BROKER=redis://redis:6379/0
|
|
depends_on:
|
|
#- pgdb
|
|
- redis
|
|
|
|
celery-worker:
|
|
#build: .
|
|
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
|
#container_name: celery_worker
|
|
command: >
|
|
sh -c "cd archivist
|
|
&& celery -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:
|
|
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
|
command: >
|
|
sh -c "cd archivist
|
|
&& celery -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
|
|
|
|
flower:
|
|
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
|
command: >
|
|
sh -c "cd archivist
|
|
&& celery -A core flower"
|
|
volumes:
|
|
- .:/app/
|
|
environment:
|
|
- DEBUG=1
|
|
- CELERY_BROKER=redis://redis:6379/0
|
|
ports:
|
|
- 5555:5555
|
|
depends_on:
|
|
- django
|
|
- redis
|
|
- celery-worker
|
|
- celery-beat
|
|
|
|
# Move to valkey because of lisence changes of redis
|
|
redis:
|
|
image: "valkey/valkey:latest"
|