public
Authored by
Fariz Rizaldy

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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: "3"
services:
tesseract-ui:
restart: unless-stopped
image: registry.gitlab.delman.io/praedictio/tesseract-ui/ui-test:binus-dev
container_name: tesseract-ui
networks:
- tesseract
expose:
- "80"
labels:
- "traefik.http.routers.unsecure-ui.rule=PathPrefix(`/`)"
- "traefik.http.routers.unsecure-ui.entryPoints=http"
- "traefik.http.middlewares.redirect-ui.redirectscheme.scheme=https"
- "traefik.http.routers.unsecure-ui.middlewares=redirect-ui"
- "traefik.http.routers.secure-ui.rule=PathPrefix(`/`)"
- "traefik.http.routers.secure-ui.tls=true"
- "traefik.http.routers.secure-ui.entryPoints=https"
- "traefik.http.services.tesseract-ui.loadbalancer.server.port=80"
- "traefik.enable=true"
- "traefik.docker.network=tesseract"
redis:
restart: unless-stopped
image: redis:4-alpine
container_name: redis
hostname: redis
expose:
- 6379
networks:
- tesseract
tesseract-station:
restart: unless-stopped
image: registry.gitlab.delman.io/praedictio/analytic-station/station_test:binus-release-0-0-2a-hotfix
container_name: tesseract-station
networks:
- tesseract
depends_on:
- redis
env_file:
- env/.tesseract-station.env
environment:
- SKIP_INIT_SCHEDULER=True
volumes:
- TmpData:/src/tmp
expose:
- 8000
labels:
- "traefik.http.middlewares.analytic-stripprefix.stripprefix.prefixes=/analytic"
- "traefik.http.routers.secure-station.entryPoints=https"
- "traefik.http.routers.secure-station.rule=PathPrefix(`/analytic`)"
- "traefik.http.routers.secure-station.tls=true"
- "traefik.http.routers.secure-station.tls.certresolver=lets"
- "traefik.http.routers.secure-station.middlewares=analytic-stripprefix@docker"
- "traefik.http.services.tesseract-station.loadbalancer.server.port=8000"
- "traefik.enable=true"
- "traefik.docker.network=tesseract"
command:
[
"gunicorn",
"--preload",
"--keep-alive=75",
"--workers=17",
"--config",
"gunicorn.conf.py",
"app.factory:create_app('app.config.ProdConfig')",
]
tesseract-scheduler:
restart: unless-stopped
image: registry.gitlab.delman.io/praedictio/analytic-station/station_test:binus-release-0-0-2a-hotfix
container_name: tesseract-scheduler
depends_on:
- redis
env_file:
- env/.tesseract-station.env
volumes:
- TmpData:/src/tmp
networks:
- tesseract
expose:
- 8000
labels:
- "traefik.http.middlewares.scheduler-stripprefix.stripprefix.prefixes=/analytic"
- "traefik.http.routers.secure-scheduler.entryPoints=https"
- "traefik.http.routers.secure-scheduler.rule=PathPrefix(`/analytic/node/{id}/sync/schedule`) || PathPrefix(`/analytic/node/sync/schedule/{id}`)"
- "traefik.http.routers.secure-scheduler.tls=true"
- "traefik.http.routers.secure-scheduler.tls.certresolver=lets"
- "traefik.http.routers.secure-scheduler.middlewares=scheduler-stripprefix@docker"
- "traefik.http.services.tesseract-scheduler.loadbalancer.server.port=8000"
- "traefik.docker.network=tesseract"
- "traefik.enable=true"
command:
[
"gunicorn",
"--preload",
"--keep-alive=75",
"--workers=9",
"--config",
"gunicorn.conf.py",
"app.factory:create_app('app.config.ProdConfig')",
]
station-worker:
restart: unless-stopped
image: registry.gitlab.delman.io/praedictio/analytic-station/station_test:binus-release-0-0-2a-hotfix
container_name: station-worker
depends_on:
- tesseract-station
env_file:
- env/.tesseract-station.env
volumes:
- TmpData:/src/tmp
networks:
- tesseract
command:
[
celery,
--app=app.worker.celery,
worker,
--concurrency=30,
--loglevel=INFO,
]
traefik:
image: traefik:v2.9
init: true
restart: always
container_name: tesseract-proxy
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
- "--certificatesresolvers.lets.acme.tlschallenge=true"
- "--certificatesresolvers.lets.acme.email=ssl@delman.io"
- "--certificatesresolvers.lets.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.lets.acme.httpchallenge.entrypoint=http"
ports:
- "80:80"
- "443:443"
networks:
- tesseract
volumes:
- letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
TmpData:
BoxDB:
letsencrypt:
networks:
tesseract:
ipam:
config:
- subnet: 192.168.10.0/24
Please register or sign in to comment