This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml.template
115 lines (112 loc) · 4.03 KB
/
docker-compose.yaml.template
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
version: "3.5"
volumes:
mongo-data:
init-mongo.js:
cis-data:
imc-data:
services:
mongo:
image: "mongo"
environment:
MONGO_INITDB_DATABASE: jupiter
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/mongo_root_password#
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- mongo-data:/data/db
ports:
- 27017:27017
command: mongod --auth
secrets:
- mongo_root_password#
postgres-cis:
image: "postgres"
environment:
POSTGRES_USER: cis
POSTGRES_PASSWORD_FILE: /run/secrets/cisdb_password#
POSTGRES_DB: jupitercis
volumes:
- cis-data:/var/lib/postgresql/data
ports:
- 5432:5432
secrets:
- cisdb_password#
postgres-imc:
image: "postgres"
environment:
POSTGRES_USER: imc
POSTGRES_PASSWORD_FILE: /run/secrets/imcdb_password#
POSTGRES_DB: jupiterimc
volumes:
- imc-data:/var/lib/postgresql/data
ports:
- 5433:5432
secrets:
- imcdb_password#
jupiter-cis:
image: "xpert98/jupiter-cis"
environment:
PORT: 3000
PG_HOST: jupiter_postgres-cis
PG_PORT: 5432
PG_SCHEMA: jupitercis
PG_USERNAME: cis
PG_PASSWORD_FILE: /run/secrets/cisdb_password#
JWT_SECRET_FILE: /run/secrets/cis_jwt_secret#
ports:
- 3000:3000
secrets:
- cisdb_password#
- cis_jwt_secret#
jupiter-cs:
image: "xpert98/jupiter-cs"
environment:
PORT: 3000
MONGO_HOST: jupiter_mongo
MONGO_PORT: 27017
MONGO_COLLECTION: jupiter
MONGO_USERNAME: jupiter
MONGO_PASSWORD_FILE: /run/secrets/mongo_user_password#
INSTANCE_ID_FILE: /run/secrets/cs_instance_id#
JWT_SECRET_FILE: /run/secrets/cs_jwt_secret#
ports:
- 3001:3000
secrets:
- mongo_user_password#
- cs_instance_id#
- cs_jwt_secret#
jupiter-imc:
image: "xpert98/jupiter-imc"
environment:
JUPITER_DB_HOST: jupiter_postgres-imc
JUPITER_DB_PORT: 5433
JUPITER_DB_SCHEMA: jupiterimc
JUPITER_DB_USER: imc
JUPITER_DB_PASSWORD_FILE: /run/secrets/imcdb_password#
SECRET_KEY_FILE: /run/secrets/imc_secret_key#
SECRET_IV_FILE: /run/secrets/imc_secret_iv#
ports:
- 80:80
secrets:
- imcdb_password#
- imc_secret_key#
- imc_secret_iv#
secrets:
mongo_root_password#:
external: true
mongo_user_password#:
external: true
cisdb_password#:
external: true
imcdb_password#:
external: true
cis_jwt_secret#:
external: true
cs_jwt_secret#:
external: true
cs_instance_id#:
external: true
imc_secret_key#:
external: true
imc_secret_iv#:
external: true