-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.03 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
version: '3.8'
services:
wireguard:
image: linuxserver/wireguard:latest
container_name: wireguard
restart: unless-stopped
volumes:
- './wireguard:/config'
- '/lib/modules:/lib/modules:ro'
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
cap_add:
- NET_ADMIN
- SYS_MODULE
privileged: true
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=0
networks:
- backbone
healthcheck:
test: ["CMD", "ping", "-c", "1", "8.8.8.8"]
interval: 30s
timeout: 10s
retries: 3
telegram_bot:
build:
context: .
dockerfile: Dockerfile
container_name: vpn-bot-manager
restart: unless-stopped
network_mode: service:wireguard
depends_on:
wireguard:
condition: service_healthy
env_file:
- .env
healthcheck:
test: ["CMD", "python3", "-c", "import sys; sys.exit(0)"]
interval: 60s
timeout: 10s
retries: 3
networks:
backbone:
driver: bridge