Skip to content

Commit

Permalink
Flower to base services
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-flam committed Feb 10, 2022
1 parent 28c6741 commit 84d9962
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ services:
- ${QABOARD_PORT_RABBITMQ:-5672}:5672
- ${QABOARD_PORT_RABBITMQ_MNGT:-15672}:15672

# https://flower.readthedocs.io/en/latest/config.html#options
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=pyamqp://guest@rabbitmq//
- CELERY_BROKER_API=http://guest:guest@rabbitmq:15672/api/
- FLOWER_PORT=8888
- FLOWER_URL_PREFIX=flower
ports:
- "8888:8888"
depends_on:
- rabbitmq

website:
image: "arthurflam/qaboard:website"
build:
Expand Down Expand Up @@ -156,6 +169,7 @@ services:
depends_on:
- backend
- cantaloupe
- flower

# IIIF image server to serve images as tiles
cantaloupe:
Expand Down
24 changes: 5 additions & 19 deletions production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ services:
proxy:
restart: always
cantaloupe:
restart: always
rabbitmq:
restart: always
flower:
restart: always

# # Adapted from https://devopsheaven.com/cron/docker/alpine/linux/2017/10/30/run-cron-docker-alpine.html
# # To trigger a backup manually call: docker-compose -f docker-compose.yml -f production.yml up -d cron-backup-db
# # docker-compose run /etc/periodic/daily/backup
Expand All @@ -64,21 +68,3 @@ services:
# volumes:
# - ./services/db/backup:/etc/periodic/daily/backup:ro
# - /WHERE/TO/SAVE/BACKUPS:/backups

rabbitmq:
restart: always

# https://flower.readthedocs.io/en/latest/config.html#options
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=pyamqp://guest@rabbitmq//
- CELERY_BROKER_API=http://guest:guest@rabbitmq:15672/api/
- FLOWER_PORT=8888
- FLOWER_URL_PREFIX=flower
ports:
- "8888:8888"
depends_on:
- rabbitmq
restart: always

0 comments on commit 84d9962

Please sign in to comment.