From 7b99ac50ae9851dfa166ab2df2833e0e0a500ecc Mon Sep 17 00:00:00 2001 From: emmatveev Date: Sun, 13 Oct 2024 00:40:57 +0300 Subject: [PATCH] initial --- .deploy/.deploy-prod.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .deploy/.deploy-prod.yaml diff --git a/.deploy/.deploy-prod.yaml b/.deploy/.deploy-prod.yaml new file mode 100644 index 0000000..f193859 --- /dev/null +++ b/.deploy/.deploy-prod.yaml @@ -0,0 +1,28 @@ +version: "3.4" + + +services: + + vpn: + image: hwdsl2/ipsec-vpn-server + environment: + VPN_DNS_SRV1: 8.8.8.8 + VPN_DNS_SRV2: 1.0.0.1 + VPN_USER: root + VPN_PASSWORD: $VPN_PASSWORD + VPN_IPSEC_PSK: $VPN_IPSEC_PSK + ports: + - 500:500/udp + - 4500:4500/udp + volumes: + - /lib/modules:/lib/modules:ro + deploy: + mode: replicated + restart_policy: + condition: any + placement: + constraints: + - node.role == manager + update_config: + parallelism: 1 + order: start-first