Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 31 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ services:
fluentd-address: localhost:24224
fluentd-async: "true"
tag: impresso.middle-layer-public
impresso-user-admin:
# ------------------------------------------------------------------------
# Base configuration for all Django/Celery services
# ------------------------------------------------------------------------
impresso-user-admin-base: &impresso-user-admin-base
image: impresso/impresso-user-admin:${IMPRESSO_USER_ADMIN_TAG:-latest}
restart: always
container_name: impresso-user-admin
env_file:
- "./.env"
- "./.env.nosecret"
Expand All @@ -97,38 +99,48 @@ services:
- redis
volumes:
- ./config/impresso-user-admin.env:/impresso-user-admin/.docker.env
- impresso-user-media:/impresso-user-admin/media:z
- ./data/impresso-user-admin/logs:/impresso-user-admin/logs:z
command: python ./manage.py runserver 0.0.0.0:8000
# ports:
# - 8088:8000
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
fluentd-async: "true"
tag: impresso.user-admin

impresso-user-admin:
<<: *impresso-user-admin-base
container_name: impresso-user-admin
command: >
gunicorn impresso.wsgi:application
--bind 0.0.0.0:8000
--workers 4
--threads 2
--timeout 120
# ports:
# - 8088:8000

impresso-celery:
image: impresso/impresso-user-admin:${IMPRESSO_USER_ADMIN_TAG:-latest}
<<: *impresso-user-admin-base
container_name: impresso-celery
restart: always
env_file:
- "./.env"
- "./.env.nosecret"
environment:
ENV: docker
depends_on:
- redis
volumes:
- ./config/impresso-user-admin.env:/impresso-user-admin/.docker.env
- impresso-user-media:/impresso-user-admin/media:z
- ./data/impresso-user-admin/logs:/impresso-user-admin/logs:z
command: celery -A impresso worker -l info
command: celery -A impresso worker -l info --concurrency=4
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
fluentd-async: "true"
tag: impresso.celery

impresso-celery-beat:
<<: *impresso-user-admin-base
container_name: impresso-celery-beat
command: celery -A impresso beat -l info
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
fluentd-async: "true"
tag: impresso.celery.beat
impresso-recsys:
image: impresso/impresso-recsys:${IMPRESSO_RECSYS_TAG:-latest}
container_name: impresso-recsys
Expand Down