-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
78 lines (72 loc) · 2.31 KB
/
compose.yaml
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
services:
dockge:
image: louislam/dockge:latest
restart: unless-stopped
ports:
- 127.0.0.1:5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- dockge_data:/app/data
# If you want to use private registries, you need to share the auth file with Dockge:
# - /root/.docker/:/root/.docker
# Stacks Directory
# ⚠️ READ IT CAREFULLY. If you did it wrong, your data could end up writing into a WRONG PATH.
# ⚠️ 1. FULL path only. No relative path (MUST)
# ⚠️ 2. Left Stacks Path === Right Stacks Path (MUST)
- /opt/dockge/stacks:/opt/dockge/stacks
environment:
# Tell Dockge where is your stacks directory
- DOCKGE_STACKS_DIR=/opt/dockge/stacks
networks:
- reverse_proxy
labels:
- homepage.group=Management
- homepage.name=Dockge
- homepage.icon=dockge-light.svg
- homepage.href=https://dockge.localhost/
- homepage.description=Container management
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv #! Only add this volume if you need to serve static files from ./site directory
- caddy_data:/data
- caddy_config:/config
networks:
- reverse_proxy
labels:
- homepage.group=Proxy
- homepage.name=Caddy
- homepage.icon=caddy.png
- homepage.description=Reverse proxy
dockerproxy:
image: tecnativa/docker-socket-proxy:latest
restart: unless-stopped
environment:
- CONTAINERS=1 # Allow access to viewing containers
- SERVICES=1 # Allow access to viewing services (necessary when using Docker Swarm)
- TASKS=1 # Allow access to viewing tasks (necessary when using Docker Swarm)
- POST=0 # Disallow any POST operations (effectively read-only)
ports:
- 127.0.0.1:2375:2375
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only
networks:
- reverse_proxy
labels:
- homepage.group=Proxy
- homepage.name=Docker Proxy
- homepage.icon=docker.png
- homepage.description=Docker socket proxy
volumes:
dockge_data:
caddy_data:
caddy_config:
networks:
reverse_proxy:
external: true