-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-stg.yml
135 lines (125 loc) · 3 KB
/
docker-compose-stg.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
version: '3.8'
name: arc-stg
services:
uptime-kuma-stg:
env_file:
- .env
image: elestio/uptime-kuma:latest
environment:
- PORT=3030
restart: always
healthcheck:
disable: true
volumes:
- ./kuma_data_stg:/app/data
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 3051:3030
mongo-stg:
image: mongo:7.0
env_file:
- .env
container_name: mongo-stg
restart: always
networks:
- common-net-stg
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
volumes:
- mongo_data_stg:/data/db
- mongo_config_stg:/data/configdb
- ./keys/mongo.keyfile:/data/mongo.keyfile
ports:
- 27018:27017
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh mongo-stg:27017/arc3 --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
mongo_admin_ui:
image: mongo-express
env_file:
- .env
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- ME_CONFIG_MONGODB_SERVER=mongo-stg
- ME_CONFIG_BASICAUTH_USERNAME=admin
- ME_CONFIG_BASICAUTH_PASSWORD=${EXPRESS_PWRD}
container_name: mongo_admin_ui
ports:
- 8081:8081
networks:
- common-net-stg
depends_on:
mongo-stg:
condition: service_healthy
arc3-stg:
env_file:
- .env
depends_on:
- mongo-stg
image: arc3-stg
build:
dockerfile: arc3.Dockerfile
container_name: arc3-stg
networks:
- common-net-stg
arc-api-stg:
env_file:
- .env
depends_on:
- arc3-stg
image: arc3-api-stg
build:
dockerfile: arc3-api.Dockerfile
args:
- fullchain=${FULLCHAIN}
- privkey=${PRIVKEY}
container_name: arc3-api-stg
restart: on-failure
ports:
- 3040:3030
networks:
- common-net-stg
unity-stg:
environment:
- PORT=3000
depends_on:
- arc-api-stg
image: unity
build:
dockerfile: unity.Dockerfile
container_name: unity-stg
restart: on-failure
ports:
- 3050:3000
networks:
- common-net-stg
arc-tasks-stg:
env_file:
- .env
depends_on:
- mongo-stg
image: arc-tasks-stg
build:
dockerfile: arc3-tasks.Dockerfile
container_name: arc3-tasks-stg
networks:
- common-net-stg
labels:
ofelia.enabled: "true"
ofelia.job-exec.data-compliance.schedule: "@every 12h"
ofelia.job-exec.data-compliance.command: "node data-compliance.js"
ofelia.job-exec.backup-db.schedule: "@every 24h"
ofelia.job-exec.backup-db.command: "node backup-db.js Guilds appeals comments guild_configs transcripts user_notes"
volumes:
- ./db-backups:/app/out
networks:
common-net-stg: {}
volumes:
mongo_data_stg:
mongo_config_stg:
kuma_data_stg: