version: '3' services: server: hostname: server domainname: example.test image: openvpn-test-server build: dockerfile: Dockerfile.server restart: always networks: - openvpn-test cap_add: - NET_ADMIN secrets: - auth_ldap_url - auth_ldap_bind_dn - auth_ldap_password - auth_ldap_base_dn - auth_ldap_group_base_dn - auth_ldap_group_search_filter client: hostname: client domainname: example.test image: openvpn-test-client build: dockerfile: Dockerfile.client restart: always networks: - openvpn-test cap_add: - NET_ADMIN secrets: - login_user - login_password networks: openvpn-test: secrets: auth_ldap_url: file: .secrets/auth_ldap_url auth_ldap_bind_dn: file: .secrets/auth_ldap_bind_dn auth_ldap_password: file: .secrets/auth_ldap_password auth_ldap_base_dn: file: .secrets/auth_ldap_base_dn auth_ldap_group_base_dn: file: .secrets/auth_ldap_group_base_dn auth_ldap_group_search_filter: file: .secrets/auth_ldap_group_search_filter login_user: file: .secrets/login_user login_password: file: .secrets/login_password