-
-
Notifications
You must be signed in to change notification settings - Fork 437
/
docker-compose.yml
82 lines (77 loc) · 1.72 KB
/
docker-compose.yml
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
---
services:
s-ui:
image: alireza7/s-ui
container_name: s-ui
hostname: "S-UI docker"
volumes:
- "singbox:/app/bin"
- "./db:/app/db"
- "./cert:/app/cert"
- "logs:/logs"
environment:
SINGBOX_API: "sing-box:1080"
SUI_DB_FOLDER: "db"
tty: true
restart: unless-stopped
ports:
- "2095:2095"
- "2096:2096"
networks:
- s-ui
links:
- syslog
logging:
driver: syslog
options:
tag: "s-ui"
syslog-address: "udp://127.0.0.1:1514"
entrypoint: "./entrypoint.sh"
depends_on:
- syslog
sing-box:
image: alireza7/s-ui-singbox
container_name: sing-box
volumes:
- "singbox:/app/"
- "./cert:/cert"
networks:
- s-ui
ports:
- "443:443"
- "1443:1443"
- "2443:2443"
- "3443:3443"
restart: unless-stopped
links:
- syslog
logging:
driver: syslog
options:
tag: "sing-box"
syslog-address: "udp://127.0.0.1:1514"
depends_on:
- s-ui
- syslog
syslog:
image: rsyslog/syslog_appliance_alpine
container_name: syslog
volumes:
- "logs:/logs"
networks:
- s-ui
ports:
- "127.0.0.1:1514:1514/udp"
restart: unless-stopped
environment:
- RSYSLOG_CONF_GLOBAL_CONF=template(name="RemoteLogs" type="string" string="/logs/%programname%.log")
- RSYSLOG_CONF_INPUT_UDP="input(type=\"imudp\" port=\"1514\" ruleset=\"remote\")"
- RSYSLOG_CONF_RULESET_REMOTE="ruleset(name=\"remote\") { action(type=\"omfile\" dynaFile=\"RemoteLogs\") }"
command: >
sh -c 'touch /config/container_config'
networks:
s-ui:
driver: bridge
volumes:
logs:
singbox: