-
Notifications
You must be signed in to change notification settings - Fork 7
/
compose.yaml
253 lines (242 loc) · 8.87 KB
/
compose.yaml
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
246
247
248
249
250
251
252
253
# encoding: ascii-8bit
# Copyright 2022 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# Modified by OpenC3, Inc.
# All changes Copyright 2023, OpenC3, Inc.
# All Rights Reserved
#
# This file may also be used under the terms of a commercial license
# if purchased from OpenC3, Inc.
services:
openc3-minio:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-minio${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
# Uncomment to run unit tests against the minio server
# ports:
# - "127.0.0.1:9000:9000"
volumes:
- "openc3-bucket-v:/data"
- "./cacert.pem:/devel/cacert.pem:z"
command: server --address ":9000" --console-address ":9001" /data
restart: "unless-stopped"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
MINIO_ROOT_USER: "${OPENC3_BUCKET_USERNAME}"
MINIO_ROOT_PASSWORD: "${OPENC3_BUCKET_PASSWORD}"
# Domain doesn't really matter but it's required. We really want the /minio path.
# This is handled by our traefik configuration via rule: PathPrefix(`/minio`)
# and forwarded on to the console at http://openc3-minio:9001
MINIO_BROWSER_REDIRECT_URL: "http://openc3.com/minio"
SSL_CERT_FILE: "/devel/cacert.pem"
CURL_CA_BUNDLE: "/devel/cacert.pem"
REQUESTS_CA_BUNDLE: "/devel/cacert.pem"
NODE_EXTRA_CA_CERTS: "/devel/cacert.pem"
openc3-redis:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-redis${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
volumes:
- "openc3-redis-v:${OPENC3_REDIS_VOLUME:-/data}"
- "./cacert.pem:/devel/cacert.pem:z"
- "./openc3-redis/users.acl:/config/users.acl:z"
restart: "unless-stopped"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
SSL_CERT_FILE: "/devel/cacert.pem"
CURL_CA_BUNDLE: "/devel/cacert.pem"
REQUESTS_CA_BUNDLE: "/devel/cacert.pem"
NODE_EXTRA_CA_CERTS: "/devel/cacert.pem"
openc3-redis-ephemeral:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-redis${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
volumes:
- "openc3-redis-ephemeral-v:${OPENC3_REDIS_VOLUME:-/data}"
- "./cacert.pem:/devel/cacert.pem:z"
- "./openc3-redis/users.acl:/config/users.acl:z"
restart: "unless-stopped"
command: ["redis-server", "/config/redis_ephemeral.conf"]
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
SSL_CERT_FILE: "/devel/cacert.pem"
CURL_CA_BUNDLE: "/devel/cacert.pem"
REQUESTS_CA_BUNDLE: "/devel/cacert.pem"
NODE_EXTRA_CA_CERTS: "/devel/cacert.pem"
openc3-cosmos-cmd-tlm-api:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-cosmos-cmd-tlm-api${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
restart: "unless-stopped"
depends_on:
- "openc3-redis"
- "openc3-redis-ephemeral"
- "openc3-minio"
volumes:
- "openc3-gems-v:/gems"
- "./plugins:/plugins:z"
- "./cacert.pem:/devel/cacert.pem:z"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
RAILS_ENV: "production"
GEM_HOME: "/gems"
PYTHONUSERBASE: "/gems/python_packages"
OPENC3_REDIS_USERNAME: "${OPENC3_REDIS_USERNAME}"
OPENC3_REDIS_PASSWORD: "${OPENC3_REDIS_PASSWORD}"
OPENC3_BUCKET_USERNAME: "${OPENC3_BUCKET_USERNAME}"
OPENC3_BUCKET_PASSWORD: "${OPENC3_BUCKET_PASSWORD}"
OPENC3_SERVICE_PASSWORD: "${OPENC3_SERVICE_PASSWORD}"
env_file:
- ".env"
openc3-cosmos-script-runner-api:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-cosmos-script-runner-api${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
restart: "unless-stopped"
depends_on:
- "openc3-redis"
- "openc3-redis-ephemeral"
- "openc3-minio"
volumes:
- "openc3-gems-v:/gems:ro"
- "./plugins:/plugins:z"
- "./cacert.pem:/devel/cacert.pem:z"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
RAILS_ENV: "production"
GEM_HOME: "/gems"
PYTHONUSERBASE: "/gems/python_packages"
OPENC3_REDIS_USERNAME: "${OPENC3_REDIS_USERNAME}"
OPENC3_REDIS_PASSWORD: "${OPENC3_REDIS_PASSWORD}"
OPENC3_BUCKET_USERNAME: "${OPENC3_BUCKET_USERNAME}"
OPENC3_BUCKET_PASSWORD: "${OPENC3_BUCKET_PASSWORD}"
OPENC3_SR_REDIS_USERNAME: "${OPENC3_SR_REDIS_USERNAME}"
OPENC3_SR_REDIS_PASSWORD: "${OPENC3_SR_REDIS_PASSWORD}"
OPENC3_SR_BUCKET_USERNAME: "${OPENC3_SR_BUCKET_USERNAME}"
OPENC3_SR_BUCKET_PASSWORD: "${OPENC3_SR_BUCKET_PASSWORD}"
OPENC3_SERVICE_PASSWORD: "${OPENC3_SERVICE_PASSWORD}"
env_file:
- ".env"
openc3-operator:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-operator${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
restart: "unless-stopped"
# ports:
# - "127.0.0.1:7779:7779" # Open port for the demo router
depends_on:
- "openc3-redis"
- "openc3-redis-ephemeral"
- "openc3-minio"
volumes:
- "openc3-gems-v:/gems:ro"
- "./plugins:/plugins:z"
- "./cacert.pem:/devel/cacert.pem:z"
# Add access to the entire C drive on Windows
# - "/c:/c"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
GEM_HOME: "/gems"
PYTHONUSERBASE: "/gems/python_packages"
OPENC3_REDIS_USERNAME: "${OPENC3_REDIS_USERNAME}"
OPENC3_REDIS_PASSWORD: "${OPENC3_REDIS_PASSWORD}"
OPENC3_BUCKET_USERNAME: "${OPENC3_BUCKET_USERNAME}"
OPENC3_BUCKET_PASSWORD: "${OPENC3_BUCKET_PASSWORD}"
OPENC3_SERVICE_PASSWORD: "${OPENC3_SERVICE_PASSWORD}"
env_file:
- ".env"
extra_hosts:
- host.docker.internal:host-gateway
openc3-traefik:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-traefik${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
volumes:
- "./cacert.pem:/devel/cacert.pem:z"
- "./openc3-traefik/traefik.yaml:/etc/traefik/traefik.yaml:z"
# - "./openc3-traefik/traefik-allow-http.yaml:/etc/traefik/traefik.yaml:z"
# - "./openc3-traefik/traefik-ssl.yaml:/etc/traefik/traefik.yaml:z"
# - "./openc3-traefik/traefik-letsencrypt.yaml:/etc/traefik/traefik.yaml:z"
# - "./openc3-traefik/cert.key:/etc/traefik/cert.key:z"
# - "./openc3-traefik/cert.crt:/etc/traefik/cert.crt:z"
ports:
- "127.0.0.1:2900:2900"
- "127.0.0.1:2943:2943"
# - "80:2900"
# - "443:2943"
restart: "unless-stopped"
depends_on:
- "openc3-redis"
- "openc3-redis-ephemeral"
- "openc3-minio"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
SSL_CERT_FILE: "/devel/cacert.pem"
CURL_CA_BUNDLE: "/devel/cacert.pem"
REQUESTS_CA_BUNDLE: "/devel/cacert.pem"
NODE_EXTRA_CA_CERTS: "/devel/cacert.pem"
openc3-cosmos-init:
user: "${OPENC3_USER_ID:-1001}:${OPENC3_GROUP_ID:-1001}"
image: "${OPENC3_REGISTRY}/${OPENC3_NAMESPACE}/openc3-cosmos-init${OPENC3_IMAGE_SUFFIX}:${OPENC3_TAG}"
restart: on-failure
depends_on:
- "openc3-traefik"
- "openc3-redis"
- "openc3-redis-ephemeral"
- "openc3-minio"
volumes:
- "openc3-gems-v:/gems"
- "./plugins:/plugins:z"
- "./cacert.pem:/devel/cacert.pem:z"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
GEM_HOME: "/gems"
PYTHONUSERBASE: "/gems/python_packages"
OPENC3_REDIS_USERNAME: "${OPENC3_REDIS_USERNAME}"
OPENC3_REDIS_PASSWORD: "${OPENC3_REDIS_PASSWORD}"
OPENC3_BUCKET_USERNAME: "${OPENC3_BUCKET_USERNAME}"
OPENC3_BUCKET_PASSWORD: "${OPENC3_BUCKET_PASSWORD}"
OPENC3_SR_BUCKET_USERNAME: "${OPENC3_SR_BUCKET_USERNAME}"
OPENC3_SR_BUCKET_PASSWORD: "${OPENC3_SR_BUCKET_PASSWORD}"
env_file:
- ".env"
volumes:
openc3-redis-v: {}
openc3-redis-ephemeral-v: {}
openc3-bucket-v: {}
openc3-gems-v: {}