Sign inSign up

gameflowtv/unleash-server

By gameflowtv

Updated over 6 years ago

Image
0

10K+

gameflowtv/unleash-server repository overview

unleash-server with google auth

docker-compose.yaml standalone
version: "3.3"
services:
  web:
    image: gameflowtv/unleash-server:google
    ports:
      - "4242:4242"
    environment:
      DATABASE_URL: postgres://username:password@hostname/database
      GOOGLE_CLIENT_ID: ...
      GOOGLE_CLIENT_SECRET: ...
      GOOGLE_CALLBACK_URL: ...
      SHARED_SECRET: ...
    command: > 
      sh -c "
        while ! nc -z db 5432; do
          echo 'Postgres is unavailable.'
          sleep 1
        done
        npm run start"
docker-compose.yaml including database
version: "3.3"
services:
  web:
    image: gameflowtv/unleash-server:google
    ports:
      - "4242:4242"
    environment:
      DATABASE_URL: postgres://postgres:unleash@db/postgres
      GOOGLE_CLIENT_ID: ...
      GOOGLE_CLIENT_SECRET: ...
      GOOGLE_CALLBACK_URL: ...
      SHARED_SECRET: ...
    command: > 
      sh -c "
        while ! nc -z db 5432; do
          echo 'Postgres is unavailable.'
          sleep 1
        done
        npm run start"
    depends_on:
      - db
    command: > 
      sh -c "
        while ! nc -z db 5432; do
          echo 'Postgres is unavailable.'
          sleep 1
        done
        npm run start"
  db:
    expose:
      - "5432"
    image: postgres:10-alpine
    environment:
      POSTGRES_DB: "db"
      POSTGRES_HOST_AUTH_METHOD: "trust"

Tag summary

Content type

Image

Digest

Size

46.2 MB

Last updated

over 6 years ago

docker pull gameflowtv/unleash-server