forked from opencobra/memote-webservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 loc) · 1.63 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.1"
services:
web:
build:
context: .
dockerfile: Dockerfile
image: opencobra/memote-webservice:${IMAGE_TAG:-latest}
networks:
default:
opencobra:
aliases:
- memote-webservice
ports:
- "${API_PORT:-8000}:8000"
volumes:
- ".:/home/kaa/app"
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- FLASK_APP=src/memote_webservice/wsgi.py
- SCRIPT_NAME=${SCRIPT_NAME}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-*}
- SENTRY_DSN=${SENTRY_DSN}
- REDIS_URL=redis://cache:6379/0
depends_on:
- cache
command: gunicorn -c gunicorn.py memote_webservice.wsgi:app
cache:
image: redis:4.0-alpine
networks:
default:
worker:
user: kaa
image: opencobra/memote-webservice:${IMAGE_TAG:-latest}
networks:
default:
volumes:
- ".:/home/kaa/app"
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- REDIS_URL=redis://cache:6379/0
depends_on:
- cache
command: celery -A memote_webservice.tasks worker --loglevel=info
flower:
image: opencobra/memote-webservice:${IMAGE_TAG:-latest}
depends_on:
- cache
networks:
default:
ports:
- "${FLOWER_PORT:-5555}:5555"
volumes:
- ".:/app"
environment:
- REDIS_URL=redis://cache:6379/0
command: celery flower -A memote_webservice --broker=redis://cache:6379/0
# Additional services that the `web` service `depends_on` should usually only
# be on the default network and not exposed on the general network, i.e.,
# networks:
# - default
networks:
opencobra:
external: true