2023-10-21 10:56:24 +02:00
|
|
|
version: "3.8"
|
2024-03-16 22:32:45 +01:00
|
|
|
|
2023-10-21 10:56:24 +02:00
|
|
|
services:
|
|
|
|
django:
|
2024-03-16 22:32:45 +01:00
|
|
|
build:
|
2023-10-21 10:56:24 +02:00
|
|
|
context: .
|
2024-03-20 22:37:54 +01:00
|
|
|
dockerfile: Dockerfile-Dev
|
2023-10-21 10:56:24 +02:00
|
|
|
args:
|
|
|
|
- USER_ID=1000
|
2024-03-16 22:32:45 +01:00
|
|
|
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
2023-10-21 10:56:24 +02:00
|
|
|
#container_name: django
|
2024-03-16 22:32:45 +01:00
|
|
|
command: >
|
|
|
|
sh -c "cd archivist
|
2023-10-21 10:56:24 +02:00
|
|
|
&& 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: .
|
2024-03-16 22:32:45 +01:00
|
|
|
image: git.aroy-art.com/aroy/gallery-archivist:dev
|
2023-10-21 10:56:24 +02:00
|
|
|
#container_name: celery_worker
|
2024-03-16 22:32:45 +01:00
|
|
|
command: >
|
|
|
|
sh -c "cd archivist
|
2024-04-10 13:01:52 +02:00
|
|
|
&& celery -A core worker -l INFO"
|
2023-10-21 10:56:24 +02:00
|
|
|
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:
|
2024-03-16 22:32:45 +01:00
|
|
|
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"
|
2023-10-21 10:56:24 +02:00
|
|
|
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
|
2024-11-04 11:21:19 +01:00
|
|
|
- celery-worker
|
|
|
|
- celery-beat
|
2024-03-20 22:37:54 +01:00
|
|
|
|
2024-11-04 11:21:19 +01:00
|
|
|
# Move to valkey because of lisence changes of redis
|
2023-10-21 10:56:24 +02:00
|
|
|
redis:
|
2024-11-04 11:21:19 +01:00
|
|
|
image: "valkey/valkey:latest"
|