vpn-webauth
vpn-webauth copied to clipboard
deployment steps
Can you please add deployments steps ?
@m-barthelemy
I fought around with this tonight and created a simple docker-compose.yml
that can get the project up and going.
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:
Note for the
changeme
pieces refer to theREADME.md
in the repository root to determine what the values should be.