Gallery-Archivist/docker-compose-dev.yml

81 lines
2.2 KiB
YAML
Raw Normal View History

---
services:
django:
build:
context: .
2024-03-20 22:37:54 +01:00
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
2024-04-10 13:01:52 +02:00
&& 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
2024-04-10 13:01:52 +02:00
&& 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
2024-03-20 22:37:54 +01:00
flower:
image: git.aroy-art.com/aroy/gallery-archivist:dev
command: >
sh -c "cd archivist
2024-04-10 13:01:52 +02:00
&& celery -A core flower"
2024-03-20 22:37:54 +01:00
volumes:
- .:/app/
environment:
- DEBUG=1
- CELERY_BROKER=redis://redis:6379/0
ports:
- 5555:5555
depends_on:
- django
- redis
- celery-worker
- celery-beat
2024-03-20 22:37:54 +01:00
# Move to valkey because of lisence changes of redis
redis:
image: "valkey/valkey:latest"