Improved docker-compose example

This commit is contained in:
iLTeoooD
2020-08-10 19:42:57 +02:00
parent 8723b8fa69
commit 1108c3c8bf
2 changed files with 23 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ version: "2"
services:
surfshark:
image: ilteoood:latest
image: ilteoood/docker-surfshark
container_name: surfshark
environment:
- SURFSHARK_USER=YOUR_SURFSHARK_USER
@@ -14,4 +14,14 @@ services:
- NET_ADMIN
devices:
- /dev/net/tun
restart: unless-stopped
restart: unless-stopped
dns:
- 1.1.1.1
service_test:
image: byrnedo/alpine-curl
container_name: alpine
command: -L 'https://ipinfo.io'
depends_on:
- surfshark
network_mode: service:surfshark
restart: always