version: '3.8'

services:
  openvpn-client:
    build: .
    container_name: openvpn-client
    privileged: true
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=0
    networks:
      - default
    restart: unless-stopped
    volumes:
      - ./logs:/var/log
    stdin_open: true
    tty: true

networks:
  default:
    driver: bridge