-
Notifications
You must be signed in to change notification settings - Fork 1
/
ebl.yml
104 lines (104 loc) · 2.49 KB
/
ebl.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.7'
services:
ai-api:
image: ebl.badw.de/ebl-ai-api:main
networks:
- ebl-api
logging:
driver: json-file
deploy:
labels:
swarmpit.service.deployment.autoredeploy: 'true'
resources:
limits:
cpus: '1.0'
memory: 2048M
api:
image: ebl.badw.de/ebl-api:master
command:
- poetry
- run
- waitress-serve
- --port=8000
- --threads=12
- --connection-limit=500
- --call
- ebl.app:get_app
environment:
AUTH0_AUDIENCE: dictionary-api
AUTH0_ISSUER: https://auth.ebl.lmu.de/
AUTH0_PEM: <Auth0 PEM>
CACHE_CONFIG: '{"CACHE_TYPE": "redis", "CACHE_REDIS_HOST": "redis"}'
EBL_AI_API: http://ai-api:8001
MONGODB_URI: mongodb://ebl-api:<top_secret_password>@badwcai-ebl01.srv.mwn.de:27017,badwcai-ebl02.srv.mwn.de:27018,badwcai-ebl03.srv.mwn.de:27019/ebl?replicaSet=rs-ebl&tls=true&tlsCAFile=/run/secrets/mongoCA.crt
NEW_RELIC_CONFIG_FILE: newrelic.ini
NEW_RELIC_LICENSE_KEY: <key>
SENTRY_DSN: <Sentry DSN>
SENTRY_ENVIRONMENT: production
secrets:
- mongoCA.crt
networks:
- ebl-api
- traefik-public
deploy:
replicas: 3
labels:
swarmpit.service.deployment.autoredeploy: 'true'
traefik.tags: traefik-public
traefik.docker.network: traefik-public
traefik.enable: 'true'
traefik.port: '8000'
traefik.frontend.rule: PathPrefixStrip:/api/
resources:
limits:
cpus: '2.5'
memory: 10G
frontend:
image: ebl.badw.de/ebl-frontend:master
networks:
- traefik-public
logging:
driver: json-file
deploy:
replicas: 3
labels:
swarmpit.service.deployment.autoredeploy: 'true'
traefik.tags: traefik-public
traefik.docker.network: traefik-public
traefik.enable: 'true'
traefik.port: '5000'
traefik.frontend.rule: PathPrefix:/
redis:
image: redis:6-alpine
command:
- redis-server
- --save
- ''
- --maxmemory
- 900M
- --maxmemory-policy
- volatile-ttl
- --loglevel
- notice
- --logfile
- ''
networks:
- ebl-api
- monitoring
logging:
driver: json-file
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024M
networks:
ebl-api:
driver: overlay
monitoring:
external: true
traefik-public:
external: true
secrets:
mongoCA.crt:
external: true