-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinclude.core.compose.yaml
More file actions
144 lines (135 loc) · 4.1 KB
/
Copy pathinclude.core.compose.yaml
File metadata and controls
144 lines (135 loc) · 4.1 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Teleporter Core Containers
services:
# Dashboard
homepage:
container_name: teleporter-homepage
hostname: teleporter-homepage
image: ghcr.io/gethomepage/homepage:v0.9.1
command: ["sh", "-c", "/sbin/ip route add ${VPN_NETWORK} via ${VPN_LOCAL_IP} && node server.js"]
restart: always
environment:
HOMEPAGE_VAR_USER_NAME: "${FULL_NAME:- VPN non configuré !}"
HOMEPAGE_VAR_COHORT: "${PROMO:-Sans promo}"
HOMEPAGE_VAR_VPN_NAME: "${VPN_NAME:-myself}"
volumes:
- ${CONFIG_DIR}/homepage:/app/config
- ${CONFIG_DIR}/homepage/images:/app/public/images
- /var/run/docker.sock:/var/run/docker.sock
networks:
oclock:
ipv4_address: 10.200.0.203
cap_add:
- NET_ADMIN
# Reverse Proxy
reverse_proxy:
container_name: teleporter-haproxy
hostname: teleporter-haproxy"
image: haproxy:lts-alpine
command: ["sh", "-c", "/sbin/ip route add ${VPN_NETWORK} via ${VPN_LOCAL_IP} && haproxy -W -db -f /usr/local/etc/haproxy/haproxy.cfg"]
restart: always
user: root
ports:
- "80:80"
volumes:
- ${CONFIG_DIR}/haproxy:/usr/local/etc/haproxy
networks:
oclock:
ipv4_address: 10.200.0.200
depends_on:
- templating-config
cap_add:
- NET_ADMIN
# Terminal
terminal:
container_name: teleporter-terminal
hostname: teleporter-terminal
image: oclock/teleporter-terminal:bdc685e9f5b1a9ef3565b93c2a3ee2bdf95fe74e
restart: always
ports:
- "3000-3003:3000-3003"
environment:
TZ: ${TZ}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
PGHOST: teleporter-postgres
PGUSER: postgres
PGPASSWORD: js4life
volumes:
- "${CODE_DIR}:/srv/code"
- "${CONFIG_DIR}:/srv/config"
- "${BACKUP_DIR}:/backup"
- "${CONFIG_DIR}/terminal/oh-my-bash/:/root/.oh-my-bash/custom/"
- "${CONFIG_DIR}/terminal/.bashrc:/root/.bashrc"
- "${CONFIG_DIR}/terminal/bin:/root/.local/bin:ro"
- "${CONFIG_DIR}/terminal/motd:/etc/motd"
- /var/run/docker.sock:/var/run/docker.sock
networks:
oclock:
ipv4_address: 10.200.0.202
# WireGuard VPN
vpn:
container_name: teleporter-vpn
hostname: teleporter-vpn
image: oclock/teleporter-vpn:dd7d23c5eea0cc4d01c658a82405123cb86a2ef6
restart: always
environment:
KEY_PRIV: ${KEY_PRIV:-}
KEY_VPN_SERVER: ${KEY_VPN_SERVER:-}
IP_PRIV: ${IP_PRIV:-}
VPN_SERVER: ${VPN_SERVER:-}
VPN_LOCAL_PORT: ${VPN_LOCAL_PORT:-}
# Should be switched to VPN_SERVER_PORT when issue#6 is done on vpn-compose project
VPN_SERVER_PORT: ${VPN_LOCAL_PORT:-}
VPN_WILDCARD: ${VPN_WILDCARD:-}
ports:
- "${VPN_LOCAL_PORT:-6666}:${VPN_LOCAL_PORT:-6666}/udp"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "ping", "-c1", "${VPN_PRIV_IP}", "-w1"]
interval: 50s
retries: 5
start_period: 10s
labels:
autoheal: True
networks:
oclock:
ipv4_address: ${VPN_LOCAL_IP}
cap_add:
- NET_ADMIN
# Browser
filebrowser:
container_name: teleporter-filebrowser
hostname: teleporter-filebrowser
image: oclock/teleporter-filebrowser:dd7d23c5eea0cc4d01c658a82405123cb86a2ef6
restart: always
environment:
FB_NOAUTH: true
volumes:
- "${CODE_DIR}:/srv/code"
- "${CONFIG_DIR}:/srv/config"
networks:
oclock:
ipv4_address: 10.200.0.201
# AutoHeal Service
autoheal:
container_name: teleporter-autoheal
hostname: teleporter-autoheal
image: willfarrell/autoheal
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
network_mode: none
# Template Config
templating-config:
container_name: teleporter-templating-config
image: oclock/teleporter-templating-config:fe3814940bd30a0298adafad1dfd686bb4489002
environment:
IP_PRIV: ${IP_PRIV:-}
VPN_NAME: ${VPN_NAME}
PROMO: ${PROMO:-}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${CONFIG_DIR}/:/app/config/
networks:
- oclock