forked from m-barthelemy/vpn-webauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1001 Bytes
/
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
version: '3.7'
services:
db:
image: postgres:14
environment:
POSTGRES_PASSWORD: password
restart: unless-stopped
volumes:
- datavolume:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
app:
build: .
ports:
- 8080:8080
depends_on:
db:
condition: service_healthy
environment:
HOST: "0.0.0.0"
ENFORCEMFA: "true"
ENCRYPTIONKEY: "changeme"
DBTYPE: "postgres"
DBDSN: "host=db user=postgres password=password database=postgres port=5432"
ENFORCEMFA: "true"
VPNCHECKPASSWORD: "changeme"
OAUTH2PROVIDER: "changeme"
OAUTH2CLIENTID: "changeme"
OAUTH2CLIENTSECRET: "changeme"
REDIRECTDOMAIN: "https://vpn.mycompany.com"
ADMINEMAIL: "[email protected]"
VAPIDPUBLICKEY: "changeme"
VAPIDPRIVATEKEY: "changeme"
restart: unless-stopped
volumes:
datavolume: