-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.19 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
37
38
39
40
41
42
43
version: "3.7"
services:
softethervpn:
image: siomiz/softethervpn:alpine
container_name: "softethervpn"
volumes:
- "./vpn_server.config:/usr/vpnserver/vpn_server.config"
- "./scripts/install_cert.sh:/usr/vpnserver/scripts/install_cert.sh"
environment:
- "SPW=$SERVER_PASS"
cap_add:
- NET_ADMIN
ports:
- 500:500/udp
- 4500:4500/udp
- 1701:1701/tcp
- 1194:1194/udp
- 443:443/tcp
- 5555:5555/tcp
restart: always
letsencrypt:
image: adferrand/letsencrypt-dns
container_name: "letsencrypt-dns"
env_file: .env
volumes:
- "./domains.conf:/etc/letsencrypt/domains.conf"
- "./letsencrypt:/etc/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./scripts/restart_docker.sh:/usr/local/bin/restart_docker"
environment:
- VERSION=latest
- "LETSENCRYPT_USER_MAIL=$EMAIL"
- "LEXICON_PROVIDER=$PROVIDER"
- "LEXICON_PROVIDER_OPTIONS=$PROVIDER_OPTIONS"
- "LEXICON_SLEEP_TIME=$SLEEP_TIME"
- "CERTS_DIRS_MODE=$DIRS_MODE"
- "CERTS_FILES_MODE=$FILES_MODE"
- "DEPLOY_HOOK=restart_docker"
restart: always
depends_on:
- softethervpn