-
-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathrootless-compose.example.yml
More file actions
55 lines (55 loc) · 1.19 KB
/
rootless-compose.example.yml
File metadata and controls
55 lines (55 loc) · 1.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
---
services:
socket-proxy:
container_name: socket-proxy
image: ghcr.io/yusing/socket-proxy:latest
environment:
- ALLOW_START=1
- ALLOW_STOP=1
- ALLOW_RESTARTS=1
- CONTAINERS=1
- EVENTS=1
- INFO=1
- PING=1
- POST=1
- VERSION=1
volumes:
- ${DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock
restart: unless-stopped
tmpfs:
- /run
networks:
- godoxy
app:
image: ghcr.io/yusing/godoxy:${TAG:-latest}
container_name: godoxy-proxy
restart: always
env_file: .env
depends_on:
socket-proxy:
condition: service_started
security_opt:
- no-new-privileges:true
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
environment:
- DOCKER_HOST=tcp://${LISTEN_ADDR:-127.0.0.1:2375}
ports:
- 80:80
- 443:443/tcp
- 443:443/udp # http3
volumes:
- ./config:/app/config
- ./logs:/app/logs
- ./error_pages:/app/error_pages:ro
- ./data:/app/data
- ./certs:/app/certs
networks:
- proxy
- godoxy
networks:
proxy: # bridge network for all services that needs proxying
external: true
godoxy: