-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
51 lines (44 loc) · 1.26 KB
/
compose.yml
File metadata and controls
51 lines (44 loc) · 1.26 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
46
47
48
49
50
51
---
services:
switchboard:
build: .
container_name: switchboard
ports:
- "6969:80"
- "6060:6060" # optional (pprof metrics)
environment:
# Switchboard config
CONFIG_PATH: /config/config.yaml
# Enable nginx config generation + reloads
NGINX_CONF_GEN_ENABLED: "true"
NGINX_CONTAINER_NAME: switchboard-nginx
NGINX_GENERATED_CONF: /etc/nginx/conf.d/switchboard.generated.conf
NGINX_USE_LINUXSERVER_CONFS: "true"
# Optional knobs
# NGINX_RELOAD_DEBOUNCE: 1500ms
volumes:
# Example config (edit to match your homelab)
- ./config:/config
# If you use local docker socket for any host endpoint
- /var/run/docker.sock:/var/run/docker.sock
# If you use `context://...` endpoints
- ~/.docker:/root/.docker:ro
# If those contexts use SSH
- ~/.ssh:/root/.ssh:ro
# Shared volume for generated nginx config
- nginx-conf:/etc/nginx/conf.d
depends_on:
- nginx
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
container_name: switchboard-nginx
ports:
- "80:80"
volumes:
# Shared volume for generated nginx config
- nginx-conf:/etc/nginx/conf.d
restart: unless-stopped
volumes:
nginx-conf: