-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 793 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 793 Bytes
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
version: '3.8'
# setting up docker image log rotation
x-log: &logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
services:
vpn:
<<: *logging
image: gseldon/vipnetclient
container_name: vipnet
# cap_add, security_opt, and volume required for the image to function
cap_add:
- net_admin
environment:
- HEALTHCHECK_CMD=$HEALTHCHECK_CMD
env_file:
- ./.env
tmpfs:
- /run
- /tmp
restart: unless-stopped
privileged: true
security_opt:
- label:disable
stdin_open: true
tty: true
volumes:
- /dev/net:/dev/net:z
- ./app/key.dst:/vipnet/key.dst
healthcheck:
test: ${HEALTHCHECK_CMD}
interval: 30s
timeout: 10s
retries: 10