35 lines
887 B
YAML
35 lines
887 B
YAML
services:
|
|
pignon-tablette:
|
|
image: caddy:latest
|
|
container_name: pignon-tablette
|
|
restart: always
|
|
volumes:
|
|
- /home/lucas/pignon-tablette/data:/srv # Dossier contenant les fichiers statiques
|
|
- /home/lucas/pignon-tablette/Caddyfile:/etc/caddy/Caddyfile # Fichier de configuration de Caddy
|
|
networks:
|
|
network-pignon:
|
|
ipv4_address: 172.23.0.3
|
|
|
|
pignon-vpn:
|
|
image: hwdsl2/ipsec-vpn-server
|
|
container_name: vpn-pignon
|
|
privileged: true
|
|
restart: always
|
|
environment:
|
|
- VPN_IPSEC_PSK=GVFtqyXVfqWsXNZuyTvpgC0pFzcanetS
|
|
- VPN_USER=tablette
|
|
- VPN_PASSWORD=pignon
|
|
- VPN_ENABLE_MODP1024=yes
|
|
volumes:
|
|
- /lib/modules:/lib/modules:ro
|
|
networks:
|
|
network-pignon:
|
|
ipv4_address: 172.23.0.2
|
|
ports:
|
|
- 500:500/udp
|
|
- 4500:4500/udp
|
|
|
|
networks:
|
|
network-pignon:
|
|
external: true
|