Skip to content
Snippets Groups Projects
Verified Commit 8de27767 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

[Docker] Add celery worker and scheduler to docker-compose.yml

parent 26219368
No related branches found
No related tags found
1 merge request!216Resolve "Add celery worker, celery-beat worker and celery broker to docker-compose.yml"
Pipeline #1312 failed
......@@ -25,6 +25,36 @@ services:
depends_on:
- db
- memcached
worker:
build: .
image: registry.edugit.org/aleksis/official/aleksis:${ALEKSIS_IMAGE_TAG:-latest}
volumes:
- aleksis_data:/var/lib/aleksis/
- aleksis_static:/usr/share/aleksis/static/
entrypoint: ["celery", "-A", "aleksis.core", "worker", "-l", "info"]
environment:
- ALEKSIS_http__allowed_hosts="['*']"
- ALEKSIS_caching__memcached__address=memcached:11211
- ALEKSIS_caching__memcached__enabled=true
- ALEKSIS_database__host=db
- ALEKSIS_maintenance__debug=${ALEKSIS_maintenance__debug:-false}
depends_on:
- app
scheduler:
build: .
image: registry.edugit.org/aleksis/official/aleksis:${ALEKSIS_IMAGE_TAG:-latest}
volumes:
- aleksis_data:/var/lib/aleksis/
- aleksis_static:/usr/share/aleksis/static/
entrypoint: ["celery", "-A", "aleksis.core", "beat", "-l", "info", "--scheduler", "django_celery_beat.schedulers:DatabaseScheduler"]
environment:
- ALEKSIS_http__allowed_hosts="['*']"
- ALEKSIS_caching__memcached__address=memcached:11211
- ALEKSIS_caching__memcached__enabled=true
- ALEKSIS_database__host=db
- ALEKSIS_maintenance__debug=${ALEKSIS_maintenance__debug:-false}
depends_on:
- worker
web:
build: ./docker/nginx
image: registry.edugit.org/aleksis/official/aleksis/nginx:${ALEKSIS_IMAGE_TAG:-latest}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment