services:
  openvpn-as:
    image: openvpn/openvpn-as:latest
    container_name: ${CONTAINER_NAME}
    restart: always
    networks:
      - 1panel-network
    ports:
      - "${PANEL_APP_PORT_CONSOLE}:943"
      - "${PANEL_APP_PORT_HTTPS}:443"
      - "${PANEL_APP_PORT_UDP}:1194/udp"
    cap_add:
      - NET_ADMIN
    volumes:
      - "./data:/openvpn"
    labels:
      createdBy: "Apps"
networks:
  1panel-network:
    external: true