-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.sample
36 lines (35 loc) · 1.18 KB
/
docker-compose.yml.sample
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
services:
ocserv:
image: pandasrun/ocserv:latest
container_name: ocserv
environment:
- DOMAIN=${DOMAIN}
- EMAIL=${EMAIL} # OPTIONAL, only for cert expiration remind
- USERNAME=${USERNAME} # OPTIONAL, will be generated auto if not set
- PASSWORD=${USERPASS} # OPTIONAL, will be generated auto if not set
# - WAIT_TIMEOUT= # OPTIONAL, default 30s, wait for file / host / container to be ready
# - WAIT_HOSTS= # OPTIONAL, comma separated list of hostnames to wait for
# - WAIT_PATHS= # OPTIONAL, comma separated list of paths to wait for
networks:
- ipv6
ports:
- 80:80 # for certbot obtain cert via http, no need when you use dns
- 443:443
# volumes:
# - ./config:/etc/ocserv
# - ./letsencrypt:/etc/letsencrypt
# - <your-cloudflare-dns-conf>:/etc/ocserv/cloudflare.ini
sysctls:
- net.ipv4.ip_forward=1
- net.ipv6.conf.all.forwarding=1
cap_add:
- NET_ADMIN
security_opt:
- no-new-privileges
restart: unless-stopped
networks:
ipv6:
enable_ipv6: true
ipam:
config:
- subnet: 2001:0DB8::/112