-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.devproxy.yaml
More file actions
86 lines (82 loc) · 2.19 KB
/
Copy pathcompose.devproxy.yaml
File metadata and controls
86 lines (82 loc) · 2.19 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
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
x-logging: &dev-logging
driver: "json-file"
options:
max-file: "5"
max-size: "10M"
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
x-healthcheck: &dev-healthcheck
interval: 30s
timeout: 5s
retries: 5
start_interval: 200ms
start_period: 10s
services:
# ----------------------------------------------------------------------------
caddy:
image: caddy:alpine
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
networks:
- devproxy
env_file:
- .env
environment:
- VITE_PUBLIC_VITE_NETWORK=${VITE_PUBLIC_VITE_NETWORK:-host.docker.internal}
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy-sites:/etc/caddy/sites
- caddy-data:/data
- caddy-config:/config
extra_hosts:
- host.docker.internal:host-gateway
logging: *dev-logging
healthcheck:
<<: *dev-healthcheck
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://host.docker.internal:80/health-check-caddy",
]
# ----------------------------------------------------------------------------
# traefik:
# image: traefik:v3.2
# ports:
# - "80:80"
# - "443:443"
# - "8080:8080"
# restart: unless-stopped
# security_opt:
# - no-new-privileges:true
# networks:
# - devproxy
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro
# - ./traefik/static.yaml:/etc/traefik/traefik.yaml:ro
# - ./traefik/dynamic.yaml:/etc/traefik/dynamic.yaml:ro
# - ./certs:/etc/certs:ro
# logging: *dev-logging
# healthcheck:
# <<: *dev-healthcheck
# test: ["CMD", "traefik", "healthcheck", "--ping"]
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.traefik=true"
# - "traefik.http.routers.traefik.tls=true"
# - "traefik.http.services.traefik.loadbalancer.server.port=8080"
# ----------------------------------------------------------------------------
volumes:
caddy-data:
caddy-config:
caddy-sites:
external: true
networks:
devproxy:
external: true