-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (36 loc) · 942 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# WARNING: this file is not suitable for production, please use with caution
version: '3'
services:
# web:
# image: flaskapi
# build: .
# command: gunicorn -b 0.0.0.0:5000 flaskapi.wsgi:app
# env_file:
# - ./.flaskenv
# environment:
# - DATABASE_URI=sqlite:////db/flaskapi.db
# - CELERY_BROKER_URL=amqp://guest:guest@rabbitmq
# - CELERY_RESULT_BACKEND_URL=redis://redis
# volumes:
# - ./flaskapi:/code/flaskapi
# - ./db/:/db/
# ports:
# - "5000:5000"
# rabbitmq:
# image: rabbitmq
redis:
image: redis
ports:
- "6379:6379"
# celery:
# image: flaskapi
# command: "celery worker -A flaskapi.celery_app:app"
# env_file:
# - ./.flaskenv
# volumes:
# - .:/code
# depends_on:
# - rabbitmq
# environment:
# - CELERY_BROKER_URL=amqp://guest:guest@rabbitmq
# - CELERY_RESULT_BACKEND_URL=redis://redis