-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (29 loc) · 880 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (29 loc) · 880 Bytes
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
services:
wg-client:
container_name: wg-client
image: ghcr.io/morels31/wireguard-iptables-docker:main
cap_add:
- NET_ADMIN
ports:
- 8080:80 #optional
volumes:
- ./config:/config
- /usr/bin/true:/usr/bin/sysctl
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
test-curl: #showcase
container_name: test-curl
image: curlimages/curl
network_mode: "service:wg-client"
depends_on: #waits wg-client startup script end
wg-client:
condition: service_healthy
command: sh -c "while true; do echo $(curl -sf https://ifconfig.me/ip); sleep 30; done"
test-website: #showcase
container_name: test-website
image: httpd
depends_on: #waits wg-client startup script end
wg-client:
condition: service_healthy
network_mode: "service:wg-client"