-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (44 loc) · 1.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (44 loc) · 1.29 KB
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
services:
swarm-visualizer:
image: swarm-visualizer:latest
build:
dockerfile: Dockerfile
deploy:
placement:
constraints:
- node.role == manager
develop:
watch:
- action: sync
path: ./web/static
target: /static
initial_sync: true
- action: rebuild
path: .
ignore:
- ./web/
env_file: "./dev.env"
environment:
- CLUSTER_NAME=Local Swarm
# - ENABLE_AUTHN=true
# - ENABLE_AUTHZ=true
# Other OIDC (sensitive) variables are set in the .gitignore'd env file
- OIDC_CLIENT_SECRET_FILE=/run/secrets/client_secret
- OIDC_REDIRECT_URL=http://localhost:8080/callback
- OIDC_SCOPES=openid,profile
# - CONTEXT_ROOT=/testing
# - HIDE_ALL_CONFIGS=true
# - HIDE_ALL_ENVS=true
# - HIDE_ALL_MOUNTS=true
# - HIDE_ALL_SECRETS=true
- SENSITIVE_DATA_PATHS=services.*.Spec.TaskTemplate.ContainerSpec.Labels.'desktop.docker.io/mounts/0/Source',tasks.*.Spec.ContainerSpec.Labels.'desktop.docker.io/mounts/0/Source'
ports:
- "8080:8080"
restart: always
secrets:
- client_secret
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
client_secret:
file: ./client_secret.txt