-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlocal.yml
214 lines (199 loc) · 6.2 KB
/
local.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
version: '3'
volumes:
colander_local_postgres_data: { }
colander_local_postgres_data_backups: { }
colander_local_minio_data: { }
colander_local_es_data: { }
services:
# traefik:
# image: traefik:v2.9.8
# command:
# - "--log.level=DEBUG"
# - "--api.insecure=true"
# - "--providers.docker=true"
# - "--providers.docker.exposedbydefault=false"
# - "--entrypoints.web.address=:80"
# depends_on:
# - django
# - cyberchef
# - keycloak
# restart: unless-stopped
# ports:
# - "88:80"
# - "8088:8080" # The Web UI (enabled by --api)
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: colander_local_django
container_name: colander_local_django
# special case for docker build toolchain
# platform: linux/x86_64
depends_on:
- postgres
- minio
- elasticsearch
- redis
- playwright
- cyberchef
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "8000:8000"
command: /start
worker:
<<: *django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: colander_local_worker
container_name: colander_local_worker
# special case for docker build toolchain
# platform: linux/x86_64
depends_on:
- postgres
- minio
- playwright
- elasticsearch
- redis
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
command: /start-worker
ports: [ ]
redis:
image: redis:6
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: colander_production_postgres
container_name: colander_local_postgres
volumes:
- colander_local_postgres_data:/var/lib/postgresql/data:Z
- colander_local_postgres_data_backups:/backups:z
env_file:
- ./.envs/.local/.postgres
minio:
image: quay.io/minio/minio:RELEASE.2022-09-22T18-57-27Z
volumes:
- colander_local_minio_data:/data
env_file:
- ./.envs/.local/.django
command: server /data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
cyberchef:
image: mpepping/cyberchef:latest
container_name: colander_local_cyberchef
ports:
- 8001:8000
restart: unless-stopped
playwright:
image: ghcr.io/piroguetoolsuite/playwright-rest-api:main
container_name: colander_local_playwright
restart: unless-stopped
elasticsearch:
image: elasticsearch:8.4.1
ports:
- 9200:9200
- 9300:9300
volumes:
- colander_local_es_data:/usr/share/elasticsearch/data
environment:
- discovery.type='single-node'
- xpack.security.enabled='false'
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
# keycloak-db:
# build:
# context: .
# dockerfile: ./compose/production/postgres/Dockerfile
# image: colander_production_postgres
# container_name: colander_local_keycloak_db
# environment:
# - POSTGRES_DB=keycloakdb
# - POSTGRES_USER=hhGArHWVrVQjuDcgBUNNlQqZNfqyNPfQ
# - POSTGRES_PASSWORD=vW9WtXmFWpsq5tATgcYNAi62cC1tWar1BsSrksBodMrra2bv4NHVvRyIm9k29Ro9
#
# keycloak:
## https://hub.docker.com/r/bitnami/keycloak
# image: bitnami/keycloak:20.0.5
# env_file:
# - ./.envs/.local/.keycloak
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8080/"]
# interval: 10s
# timeout: 5s
# retries: 3
# depends_on:
# - keycloak-db
# ports:
# - 8003:8080
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.keycloak.rule=Host(`auth.radis`)"
# - "traefik.http.routers.keycloak.service=keycloak"
# - "traefik.http.routers.keycloak.entrypoints=web"
# - "traefik.http.services.keycloak.loadbalancer.server.port=8080"
# - "traefik.http.services.keycloak.loadbalancer.passhostheader=true"
# - "traefik.http.routers.keycloak.middlewares=compresstraefik"
# - "traefik.http.middlewares.compresstraefik.compress=true"
# restart: unless-stopped
kibana:
image: kibana:8.4.1
depends_on:
- elasticsearch
ports:
- 5601:5601
# traefik-forward-auth:
# image: thomseddon/traefik-forward-auth:2
# networks:
# - web
# depends_on:
# - keycloak
# environment:
# - DEFAULT_PROVIDER=oidc
# - PROVIDERS_OIDC_CLIENT_ID=colander
# - PROVIDERS_OIDC_CLIENT_SECRET=aJnfi6xIsvaxm6SEDehKoP7GBt4FADyj
# - SECRET=dfge45te34teyhga3eq4yt4y
# - INSECURE_COOKIE=true # Example assumes no https, do not use in production
# - COOKIE_DOMAIN=radis
# - PROVIDERS_OIDC_ISSUER_URL=http://auth.radis:88/realms/Colander
# - LOG_LEVEL=debug
# labels:
# - "traefik.enable=true"
# - "traefik.docker.network=web"
# - "traefik.http.middlewares.traefik-forward-auth.forwardauth.address=http://traefik-forward-auth:4181"
# - "traefik.http.middlewares.traefik-forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
# - "traefik.http.services.traefik-forward-auth.loadbalancer.server.port=4181"
# forwardauth:
# image: mesosphere/traefik-forward-auth
# networks:
# - web
# depends_on:
# - keycloak
# environment:
# - SECRET=dfge45te34teyhga3eq4yt4y
# - PROVIDER_URI=http://auth.radis:88/realms/Colander
# - CLIENT_ID=colander
# - CLIENT_SECRET=aJnfi6xIsvaxm6SEDehKoP7GBt4FADyj
# labels:
# - "traefik.enable=true"
# - "traefik.docker.network=web"
# - "traefik.http.services.forwardauth.loadbalancer.server.port=4181"
# - "traefik.http.routers.forwardauth.entrypoints=web"
# - "traefik.http.routers.forwardauth.rule=Path(`/_oauth`)"
# - "traefik.http.routers.forwardauth.middlewares=traefik-forward-auth"
# - "traefik.http.middlewares.traefik-forward-auth.forwardauth.address=http://forwardauth:4181"
# - "traefik.http.middlewares.traefik-forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
# - "traefik.http.middlewares.traefik-forward-auth.forwardauth.trustForwardHeader=true"