vpn-webauth icon indicating copy to clipboard operation
vpn-webauth copied to clipboard

deployment steps

Open zdhamasha opened this issue 2 years ago • 2 comments

Can you please add deployments steps ?

zdhamasha avatar Mar 05 '22 08:03 zdhamasha

@m-barthelemy

zdhamasha avatar Mar 05 '22 13:03 zdhamasha

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 the README.md in the repository root to determine what the values should be.

ethantmcgee avatar Aug 03 '22 04:08 ethantmcgee