-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
245 lines (227 loc) · 6.31 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
version: '3.5'
services:
redis:
image: redis
networks:
cephalopod:
aliases:
- redis_container_cephalopod
- "redis.local"
restart: unless-stopped
volumes:
- redis:/data
postgres:
#command: "-c log_statement=all -c log_destination=stderr -c fsync=off -c synchronous_commit=off -c full_page_writes=off"
image: postgres:17
shm_size: '2gb'
environment:
POSTGRES_USER: ${POSTGRES_USER:-cephalopod}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-cephalopod}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "127.0.0.1:${POSTGRES_PORT:-6435}:5432"
networks:
postgres:
aliases:
- postgres_container_cephalopod
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-cephalopod}
volumes:
- "pgadmin:/var/lib/pgadmin"
ports:
- "127.0.0.1:${PGADMIN_PORT:-6053}:80"
networks:
- postgres
restart: unless-stopped
neuroforge_skipper_base_dev:
entrypoint: >
/bin/sh -c "sudo service ssh restart; tail -f /dev/null;"
build:
context: .
dockerfile: skipper/Dockerfile-base-dev
args:
- CONTAINER_USER_ID=${CONTAINER_USER_ID}
- CONTAINER_GROUP_ID=${CONTAINER_GROUP_ID}
volumes:
- ./skipper:/neuroforge/skipper
ports:
- "127.0.0.1:${PYTHON_DEV_OUTSIDE_PORT:-10000}:8000"
- "127.0.0.1:${PYTHON_DEV_FLOWER_OUTSIDE_PORT:-5555}:5555"
- "127.0.0.1:${PYTHON_DEV_SSH_OUTSIDE_PORT:-2222}:22"
environment:
SKIPPER_DEBUG_LOCAL: 'true'
networks:
postgres:
cephalopod:
aliases:
- skipper.local
- neuroforge_skipper_base_dev
restart: unless-stopped
#userid: 0
# this simulates an outside docker container, when deploying, this is some kind of ingress into the system
# this could be any kind of proxying software, since the heavy lifting is handled by skipper_proxy
cephalopodnginxdev:
image: "nginx:1.23.3"
ports:
- "127.0.0.1:${NGINX_DEV_OUTSIDE_PORT:-6043}:443"
restart: unless-stopped
networks:
cephalopod:
aliases:
- cephalopodnginxdev.local
volumes:
- ./devenv/nginx_config/auth:/auth
- ./devenv/nginx_config/conf.d:/etc/nginx/conf.d
# we do a lot of routing between the different apps. This is abstracted by this container
skipper_proxy:
build:
context: skipper_proxy
dockerfile: Dockerfile
ports:
- "127.0.0.1:${SKIPPER_PROXY_OUTSIDE_PORT:-6033}:80"
restart: unless-stopped
networks:
cephalopod:
aliases:
- skipper.proxy.local
volumes:
- /etc/ssl/certs/ca-certificates.crt:/neuroforge/skipper/trusted_ca.crt
statsd:
command: "--statsd.mapping-config=/statsd/statsd.conf"
image: "prom/statsd-exporter"
ports:
- "127.0.0.1:${STATSD_OUTSIDE_PORT:-9102}:9102"
- "127.0.0.1:${STATSD_UDP_OUTSIDE_PORT:-9125}:9125/udp"
restart: unless-stopped
networks:
cephalopod:
aliases:
- statsd
volumes:
- ./devenv/statsd_config/statsd.conf:/statsd/statsd.conf
prometheus:
image: "prom/prometheus"
ports:
- "127.0.0.1:${NGINX_PROMETHEUS_OUTSIDE_PORT:-19090}:9090"
restart: unless-stopped
networks:
cephalopod:
aliases:
- prometheus
volumes:
- ./devenv/prometheus_config:/etc/prometheus
- prometheus:/prometheus
nodered:
ports:
- '127.0.0.1:${NODERED_OUTSIDE_PORT:-1881}:1880'
image: nodered/node-red
environment:
NODE_RED_ENABLE_PROJECTS: "true"
NODE_TLS_REJECT_UNAUTHORIZED: "0"
networks:
cephalopod:
aliases:
- nodered.local
- nodered
restart: unless-stopped
volumes:
- nodered:/data
seaweedmaster:
image: chrislusf/seaweedfs
command: "master -ip=seaweedmaster -volumeSizeLimitMB=16"
restart: unless-stopped
networks:
cephalopod:
aliases:
- seaweedmaster
environment:
WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
seaweedvolume:
image: chrislusf/seaweedfs
command: "volume -mserver=seaweedmaster:9333 -port=8080 -ip=seaweedvolume -preStopSeconds=1"
restart: unless-stopped
volumes:
- "seaweedfs_volume:/data"
networks:
cephalopod: {}
depends_on:
- seaweedmaster
s3:
image: chrislusf/seaweedfs
command: 'filer -master="seaweedmaster:9333" -s3 -s3.config=/etc/seaweedfs/s3.json -s3.port=6044'
restart: unless-stopped
networks:
cephalopod:
aliases:
- "nfcomposes3"
ports:
- "127.0.0.1:${SEAWEEDFS_DEV_OUTSIDE_PORT:-6044}:6044"
volumes:
- "./devenv/s3_config/s3.json:/etc/seaweedfs/s3.json"
- "seaweedfs_buckets:/data"
depends_on:
- seaweedmaster
- seaweedvolume
awscli:
entrypoint: "tail -f /dev/null"
image: amazon/aws-cli
restart: unless-stopped
networks:
cephalopod: {}
depends_on:
- s3
jaeger:
environment:
- 'COLLECTOR_ZIPKIN_HOST_PORT=:9411'
- 'QUERY_BASE_PATH=/api/debug/telemetry/ui'
networks:
cephalopod:
aliases:
- "jaeger.local"
restart: unless-stopped
ports:
- "127.0.0.1:${JAEGER_UI_OUTSIDE_PORT:-16686}:16686"
# - '127.0.0.1:5775:5775/udp'
# - '127.0.0.1:6831:6831/udp'
# - '127.0.0.1:6832:6832/udp'
# - '127.0.0.1:5778:5778'
# - '127.0.0.1:14250:14250'
# - '127.0.0.1:14268:14268'
# - '127.0.0.1:14269:14269'
# - '127.0.0.1:9411:9411'
image: 'jaegertracing/all-in-one:1.29'
grafana:
image: grafana/grafana
restart: unless-stopped
ports:
- "127.0.0.1:${GRAFANA_OUTSIDE_PORT:-6042}:3000"
networks:
postgres:
aliases:
- "grafana.local"
cephalopod:
aliases:
- "grafana.local"
volumes:
- grafana:/var/lib/grafana
volumes:
redis:
postgres:
pgadmin:
prometheus:
nodered:
seaweedfs_volume:
seaweedfs_buckets:
grafana:
networks:
cephalopod:
driver: bridge
postgres:
driver: bridge