mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
Merge pull request #309 from jimfingal/jim/flower
Run docker-compose flower in main container
This commit is contained in:
commit
6b939be394
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue