Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment steps #16

Open
zdhamasha opened this issue Mar 5, 2022 · 2 comments
Open

deployment steps #16

zdhamasha opened this issue Mar 5, 2022 · 2 comments

Comments

@zdhamasha
Copy link

Can you please add deployments steps ?

@zdhamasha
Copy link
Author

@m-barthelemy

@ethantmcgee
Copy link

ethantmcgee commented Aug 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants