Last active
November 25, 2019 18:05
-
-
Save mrprofessor/04c45d6d6611a274fe7b3042d96b7db3 to your computer and use it in GitHub Desktop.
celery flower
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7 | |
RUN mkdir -p /var/www/retail-server | |
# Update working directory | |
WORKDIR /var/www/retail-server | |
COPY requirements.txt ./requirements.txt | |
# Install explicitly because of segment fault with psycopg2. | |
RUN pip3 install --no-binary :all: psycopg2 | |
# Install the Python libraries | |
RUN pip3 install --no-cache-dir -r requirements.txt | |
# copy everything from this directory to server/flask docker container | |
COPY . /var/www/retail-server/ | |
ENV APP_MODE=FLOWER | |
# run server | |
#CMD ["flower", "-A", "app.celery_worker.celery", "--port=5555"] | |
CMD ["celery", "flower", "-A", "app.tasks.celery", "--port=5555"] | |
#flower -A app.celery_worker.celery --port=5555 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flower: | |
container_name: flower_container | |
restart: on-failure | |
image: flower | |
build: | |
context: ./flask | |
dockerfile: Dockerfile.flower | |
environment: | |
- PYTHONPATH=. | |
- CONFIG_PATH=config/local | |
ports: | |
- "5555:5555" | |
depends_on: | |
- flask_service | |
- redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment