Haxxnet / Compose-Examples

Various Docker Compose examples of selfhosted FOSS and proprietary projects.

Home Page:https://haxxnet.github.io/Compose-Examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IPsec VPN Server on Docker

hadalin opened this issue · comments

What FOSS project is currently missing. Provide names and links.

Does an example docker-compose.yml exist?

  • Yes, managed by the FOSS maintainer. See links below.

Here some links to pre-existing docker-compose examples:

Here my personal working docker-compose.yml:

version: '3'

services:
  vpn:
    image: hwdsl2/ipsec-vpn-server
    environment:
      - VPN_IPSEC_PSK
      - VPN_USER
      - VPN_PASSWORD
      - VPN_ADDL_USERS
      - VPN_ADDL_PASSWORDS
      - VPN_DNS_SRV1
    restart: always
    ports:
      - "500:500/udp"
      - "4500:4500/udp"
    privileged: true
    hostname: ipsec-vpn-server
    container_name: ipsec-vpn-server
    volumes:
      - data:/etc/ipsec.d
      - /lib/modules:/lib/modules:ro
      
volumes:
  data:
commented

Done. See e4658c8 or the new compose example here.

Thanks for your submission!