1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

update nginx-sso

This commit is contained in:
kev 2019-12-18 15:58:35 +08:00
parent a08f493804
commit 471495f395
2 changed files with 17 additions and 5 deletions

View File

@ -11,14 +11,12 @@ docker-compose.yml
```yaml
dsvpn:
image: vimagick/dsvpn
command: server vpn.key auto 1959
command: server vpn.key auto 443
ports:
- "1959:1959"
- "443:443"
volumes:
- ./data:/etc/dsvpn
working_dir: /etc/dsvpn
devices:
- /dev/net/tun
tty: true
privileged: true
restart: unless-stopped
```

View File

@ -0,0 +1,14 @@
[Unit]
Description=nginx sso service
After=network.target
[Service]
User=nobody
WorkingDirectory=/etc/nginx-sso
ExecStart=/usr/local/bin/nginx-sso
ExecReload=/bin/kill -s HUP $MAINPID
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target