-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathproduction.yml
191 lines (175 loc) · 5.06 KB
/
production.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
version: '3'
volumes:
production_traefik: {}
production_colander_postgres_data: {}
production_colander_postgres_data_backups: {}
production_threatr_postgres_data: {}
production_threatr_postgres_data_backups: {}
production_keycloak_postgres_data: {}
production_keycloak_postgres_data_backups: {}
production_colander_minio_data: { }
production_colander_es_data: { }
services:
# Databases
colander-postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: colander_production_postgres
volumes:
- production_colander_postgres_data:/var/lib/postgresql/data:Z
- production_colander_postgres_data_backups:/backups:z
env_file:
- ./.envs/.production/.colander-postgres
threatr-postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: colander_production_threatr_postgres
volumes:
- production_threatr_postgres_data:/var/lib/postgresql/data:Z
- production_threatr_postgres_data_backups:/backups:z
env_file:
- ./.envs/.production/.threatr-postgres
keycloak-postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: colander_production_keycloak_postgres
volumes:
- production_keycloak_postgres_data:/var/lib/postgresql/data:Z
- production_keycloak_postgres_data_backups:/backups:z
env_file:
- ./.envs/.production/.keycloak-postgres
colander-front:
image: ghcr.io/piroguetoolsuite/colander:main
depends_on:
- colander-postgres
- cyberchef
- elasticsearch
- keycloak
- playwright
- minio
- redis
env_file:
- ./.envs/.production/.base
- ./.envs/.production/.minio
- ./.envs/.production/.colander
- ./.envs/.production/.colander-postgres
command: /start
labels:
- "com.centurylinklabs.watchtower.enable=true"
colander-worker:
image: ghcr.io/piroguetoolsuite/colander:main
depends_on:
- colander-postgres
- elasticsearch
- playwright
- minio
- redis
env_file:
- ./.envs/.production/.base
- ./.envs/.production/.minio
- ./.envs/.production/.colander
- ./.envs/.production/.colander-postgres
command: /start-worker
labels:
- "com.centurylinklabs.watchtower.enable=true"
threatr-front:
image: ghcr.io/piroguetoolsuite/threatr:main
depends_on:
- threatr-postgres
- redis
env_file:
- ./.envs/.production/.base
- ./.envs/.production/.threatr
- ./.envs/.production/.threatr-postgres
command: /start
labels:
- "com.centurylinklabs.watchtower.enable=true"
threatr-worker:
image: ghcr.io/piroguetoolsuite/threatr:main
depends_on:
- threatr-postgres
- redis
env_file:
- ./.envs/.production/.base
- ./.envs/.production/.threatr
- ./.envs/.production/.threatr-postgres
command: /start-worker
labels:
- "com.centurylinklabs.watchtower.enable=true"
traefik:
build:
context: .
dockerfile: ./compose/production/traefik/Dockerfile
image: colander_production_traefik
depends_on:
- colander-front
- threatr-front
- keycloak
volumes:
- production_traefik:/etc/traefik/acme:z
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
cyberchef:
image: mpepping/cyberchef:latest
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
playwright:
image: ghcr.io/piroguetoolsuite/playwright-rest-api:main
container_name: colander_production_playwright
restart: unless-stopped
elasticsearch:
image: elasticsearch:8.4.1
volumes:
- production_colander_es_data:/usr/share/elasticsearch/data
environment:
- discovery.type='single-node'
- xpack.security.enabled='false'
- "ES_JAVA_OPTS=-Xms2048m -Xmx2048m"
minio:
image: quay.io/minio/minio:RELEASE.2022-09-22T18-57-27Z
volumes:
- production_colander_minio_data:/data
env_file:
- ./.envs/.production/.minio
command: server /data
networks:
- web
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
keycloak:
# https://hub.docker.com/r/bitnami/keycloak
image: bitnami/keycloak:20.0.5
env_file:
- ./.envs/.production/.base
- ./.envs/.production/.keycloak
- ./.envs/.production/.keycloak-postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 10s
timeout: 5s
retries: 3
depends_on:
- keycloak-db
watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_POLL_INTERVAL=12*60*60
labels:
- "com.centurylinklabs.watchtower.enable=true"
redis:
image: redis:6