forked from Haxxnet/Compose-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (34 loc) · 1.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.3'
services:
openvpn-as:
image: openvpn/openvpn-as
container_name: openvpn-as
hostname: openvpn-as
restart: always
cap_add:
- NET_ADMIN
ports:
- 443:443/tcp # openvpn over tcp
- 1194:1194/udp # openvpn over udp
- 943:943/tcp # openvpn admin ui
expose:
- 443 # openvpn over tcp
- 1194 # openvpn over udp
- 943 # openvpn as admin ui
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/openvpn:/openvpn
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.docker.network=proxy
# - traefik.http.routers.openvpn.rule=Host(`openvpn.example.com`)
# - traefik.http.services.openvpn.loadbalancer.server.port=943
# # Optional part when proxying to services that already provide ssl/tls
# - traefik.http.services.openvpn.loadbalancer.server.scheme=https
# - traefik.http.services.openvpn.loadbalancer.serverstransport=insecureTransport@file
# # Optional part for traefik middlewares
# - traefik.http.routers.openvpn.middlewares=local-ipwhitelist@file
#networks:
# proxy:
# external: true