DOCKER COMPOSE SERVER B
von hawkeye78- SNIPPET_TEXT:
-
- version: '3'
- services:
- webclient:
- image: wbitt/network-multitool
- command: bash -c "while true; do echo hello; sleep 2; done"
- network_mode: service:wireguard
- # networks:
- # - webserver-net
- wireguard:
- image: linuxserver/wireguard
- container_name: wireguard
- restart: unless-stopped
- environment:
- - PUID=1000
- - PGID=1000
- - TZ=Europe/Berlin
- cap_add:
- - NET_ADMIN
- - SYS_MODULE
- sysctls:
- - net.ipv4.ip_forward=1
- - net.ipv4.conf.all.src_valid_mark=1
- volumes:
- - /home/dan/wireguard:/config
- - /lib/modules:/lib/modules:ro
- ports:
- - 51820:51820
- networks:
- - webserver-net
- networks:
- webserver-net:
- driver: bridge
- external: true
- name: webserver-net
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN