-
Notifications
You must be signed in to change notification settings - Fork 129
/
compose.yaml
160 lines (149 loc) · 4.94 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
# 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.
#
# This program may also be used under the terms of a commercial or
# enterprise edition license of COSMOS if purchased from the
# copyright holder
version: "3.5"
services:
cosmos-minio:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-minio:${COSMOS_TAG}"
volumes:
- "cosmos-minio-v:/data"
- "./cacert.pem:/devel/cacert.pem"
command: ["server", "/data"]
restart: "unless-stopped"
environment:
MINIO_ROOT_USER: "${COSMOS_MINIO_USERNAME}"
MINIO_ROOT_PASSWORD: "${COSMOS_MINIO_PASSWORD}"
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"
cosmos-redis:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-redis:${COSMOS_TAG}"
volumes:
- "cosmos-redis-v:/data"
- "./cacert.pem:/devel/cacert.pem"
- "./cosmos-redis/users.acl:/config/users.acl"
restart: "unless-stopped"
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"
cosmos-redis-ephemeral:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-redis:${COSMOS_TAG}"
volumes:
- "./cacert.pem:/devel/cacert.pem"
- "./cosmos-redis/users.acl:/config/users.acl"
restart: "unless-stopped"
command: ["redis-server", "/config/redis_ephemeral.conf"]
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"
cosmos-cmd-tlm-api:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-cmd-tlm-api:${COSMOS_TAG}"
restart: "unless-stopped"
depends_on:
- "cosmos-redis"
- "cosmos-redis-ephemeral"
- "cosmos-minio"
volumes:
- "cosmos-gems-v:/gems"
- "./cacert.pem:/devel/cacert.pem"
environment:
- "RAILS_ENV=production"
- "GEM_HOME=/gems"
env_file:
- ".env"
cosmos-script-runner-api:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-script-runner-api:${COSMOS_TAG}"
restart: "unless-stopped"
depends_on:
- "cosmos-redis"
- "cosmos-redis-ephemeral"
- "cosmos-minio"
volumes:
- "cosmos-gems-v:/gems:ro"
- "./cacert.pem:/devel/cacert.pem"
environment:
- "RAILS_ENV=production"
- "GEM_HOME=/gems"
env_file:
- ".env"
cosmos-operator:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-operator:${COSMOS_TAG}"
restart: "unless-stopped"
depends_on:
- "cosmos-redis"
- "cosmos-redis-ephemeral"
- "cosmos-minio"
volumes:
- "cosmos-gems-v:/gems:ro"
#- ./cacert.pem:/devel/cacert.pem
# Add access to the entire C drive on Windows
# - "/c:/c"
environment:
- "GEM_HOME=/gems"
env_file:
- ".env"
extra_hosts:
- host.docker.internal:host-gateway
cosmos-traefik:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-traefik:${COSMOS_TAG}"
volumes:
- "./cacert.pem:/devel/cacert.pem"
- "./cosmos-traefik/traefik.yaml:/etc/traefik/traefik.yaml"
# - "./cosmos-traefik/traefik-allow-http.yaml:/etc/traefik/traefik.yaml"
# - "./cosmos-traefik/traefik-ssl.yaml:/etc/traefik/traefik.yaml"
# - "./cosmos-traefik/traefik-letsencrypt.yaml:/etc/traefik/traefik.yaml"
# - "./cosmos-traefik/cert.key:/etc/traefik/cert.key"
# - "./cosmos-traefik/cert.crt:/etc/traefik/cert.crt"
ports:
- "127.0.0.1:2900:80"
- "127.0.0.1:2943:443"
# - "80:80"
# - "443:443"
restart: "unless-stopped"
depends_on:
- "cosmos-redis"
- "cosmos-redis-ephemeral"
- "cosmos-minio"
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"
cosmos-init:
image: "${COSMOS_REGISTRY}/ballaerospace/cosmosc2-init:${COSMOS_TAG}"
restart: on-failure
depends_on:
- "cosmos-traefik"
- "cosmos-redis"
- "cosmos-redis-ephemeral"
- "cosmos-minio"
volumes:
- "cosmos-gems-v:/gems"
- "./cacert.pem:/devel/cacert.pem"
environment:
- "GEM_HOME=/gems"
env_file:
- ".env"
volumes:
cosmos-redis-v: {}
cosmos-minio-v: {}
cosmos-gems-v: {}