Merge pull request #309 from jimfingal/jim/flower

Run docker-compose flower in main container
This commit is contained in:
Mouse Reeve 2020-11-07 18:29:33 -08:00 committed by GitHub
commit 6b939be394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -1,10 +1,15 @@
FROM python:3 FROM python:3.9
ENV PYTHONUNBUFFERED 1
ENV PYTHONUNBUFFERED 1
RUN mkdir /app RUN mkdir /app
RUN mkdir /app/static RUN mkdir /app/static
RUN mkdir /app/images RUN mkdir /app/images
WORKDIR /app WORKDIR /app
COPY requirements.txt /app/ COPY requirements.txt /app/
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
COPY ./bookwyrm /app COPY ./bookwyrm /app
COPY ./celerywyrm /app COPY ./celerywyrm /app

View file

@ -57,7 +57,8 @@ services:
- redis - redis
restart: on-failure restart: on-failure
flower: flower:
image: mher/flower build: .
command: flower --port=8888
env_file: .env env_file: .env
environment: environment:
- CELERY_BROKER_URL=${CELERY_BROKER} - CELERY_BROKER_URL=${CELERY_BROKER}