-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
148 lines (135 loc) · 2.73 KB
/
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
x-http-proxy: &http-proxy ${HTTP_PROXY}
x-https-proxy: &https-proxy ${HTTPS_PROXY}
x-no-proxy: &no-proxy localhost,127.0.0.1,uclvlddpragae07,uclvlddpragae08,api,web,baserow
x-proxy-common: &proxy-common
HTTP_PROXY: *http-proxy
http_proxy: *http-proxy
HTTPS_PROXY: *https-proxy
https_proxy: *https-proxy
NO_PROXY: *no-proxy
no_proxy: *no-proxy
x-build-args-common: &build-args-common
<<: *proxy-common
HYLODE_UID: ${HYLODE_UID}
services:
api:
build:
dockerfile: docker/api/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
env_file: .env
depends_on:
- baserow
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/docs"]
interval: 200s
timeout: 200s
retries: 5
ports:
- ${API_PORT}:8000
networks:
- hyui
web:
build:
dockerfile: docker/web/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
env_file: .env
ports:
- ${WEB_PORT}:8000
depends_on:
- baserow
- api
- redis
networks:
- hyui
redis:
image: redis:7.0-alpine
environment:
<<: *proxy-common
healthcheck:
test: ["CMD", "redis-cli","ping"]
networks:
- hyui
redisinsight:
image: redislabs/redisinsight
environment:
<<: *proxy-common
ports:
- ${REDISINSIGHT_PORT}:8001
networks:
- hyui
depends_on:
- redis
volumes:
- redisinsight:/db
celery_worker:
build:
dockerfile: docker/celery/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
command: /app/start-worker
env_file:
- .env
depends_on:
redis:
condition: service_healthy
api:
condition: service_healthy
networks:
- hyui
celery_beat:
build:
dockerfile: docker/celery/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
command: /app/start-beat
env_file:
- .env
depends_on:
- redis
- api
- celery_worker
networks:
- hyui
celery_flower:
build:
dockerfile: docker/celery/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
command: /app/start-flower
ports:
- "${FLOWER_PORT}:5557"
env_file:
- .env
depends_on:
- redis
- celery_worker
networks:
- hyui
baserow:
image: baserow/baserow:1.16.0
environment:
<<: *proxy-common
env_file: .env
ports:
- ${BASEROW_PORT}:80
networks:
- hyui
volumes:
- baserow-data:/baserow/data
networks:
hyui:
volumes:
baserow-data:
redisinsight: