-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker.gateway.yaml
108 lines (103 loc) · 2.44 KB
/
docker.gateway.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
networks:
ferrum:
fg-base_ferrum:
external: true
volumes:
ferrum:
lmdb:
services:
prepare:
image: alpine:3.17
labels:
FerrumGatewayId: "??GATEWAY_ID"
command:
- /bin/sh
- -c
- |
CONF_FILE=/data/conf
if [ ! -f $$CONF_FILE ];then
echo "file does not exits"
echo "FerrumGatewayId: "??GATEWAY_ID""> $$CONF_FILE
fi
networks:
- ferrum
volumes:
- ferrum:/data
profiles:
- worker
server-quic:
image: "??PRIVATE_REGISTRY/ferrumgate/secure.server.quic:1.1.0"
labels:
FerrumGatewayId: "??GATEWAY_ID"
restart: always
ports:
- "??SSH_PORT:9999/tcp"
- "??SSH_PORT:9999/udp"
environment:
- REDIS_HOST=${REDIS_PROXY_HOST}
- REDIS_PASS=${REDIS_PASS}
- PORT=9999
- GATEWAY_ID=??GATEWAY_ID
cap_add:
- NET_ADMIN
extra_hosts:
- "registry.ferrumgate.zero:192.168.88.40"
deploy:
mode: global
restart_policy:
delay: 5s
depends_on:
- prepare
volumes:
- /dev/net/tun:/dev/net/tun
- /dev/urandom:/dev/urandom
- ferrum:/etc/ferrumgate
networks:
- ferrum
- fg-base_ferrum
logging:
driver: local
profiles:
- worker
admin:
image: "??PRIVATE_REGISTRY/ferrumgate/job.admin:2.2.0"
labels:
FerrumGatewayId: "??GATEWAY_ID"
restart: always
privileged: true
environment:
- MODE=gateway
- ROLES=${ROLES}
- REDIS_HOST=${REDIS_PROXY_HOST}
- REDIS_PASS=${REDIS_PASS}
- REDIS_LOCAL_HOST=${REDIS_LOCAL_HOST}
- REDIS_LOCAL_PASS=${REDIS_LOCAL_PASS}
- REDIS_INTEL_HOST=${REDIS_INTEL_PROXY_HOST}
- REDIS_INTEL_PASS=${REDIS_INTEL_PASS}
- FERRUM_IO_IMAGE=??PRIVATE_REGISTRY/ferrumgate/ferrum.io:1.6.0
- ENCRYPT_KEY=${ENCRYPT_KEY}
- GATEWAY_ID=??GATEWAY_ID
- NODE_ID=${NODE_ID}
- ES_HOST=${ES_PROXY_HOST}
- ES_USER=${ES_USER}
- ES_PASS=${ES_PASS}
- LOG_LEVEL=${LOG_LEVEL}
- SYSLOG_HOST=log:9292
- DB_FOLDER=/var/lib/ferrumgate/db
depends_on:
- prepare
- server-quic
deploy:
mode: global
restart_policy:
delay: 5s
volumes:
- ferrum:/etc/ferrumgate
- lmdb:/var/lib/ferrumgate
- /etc/docker:/etc/docker
- /var/run/docker.sock:/var/run/docker.sock
network_mode: service:server-quic
logging:
driver: local
profiles:
- worker