golang-basic-authentication-jwt

command module
v0.0.0-...-b671e54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 13 Imported by: 0

README

Actions Status

golang-basic-authentication-jwt

ENV variables

default values for ENV are:

DB_HOST=0.0.0.0

DB_PORT=5432

DB_USER=postgres

DB_PASSWORD=my-secret-password

DB_NAME=golang

How to use an image of docker container

before you needs to auth via github username

`docker login docker.pkg.github.com --username ``

docker pull docker.pkg.github.com/qwertmax/golang-basic-authentication-jwt/golang-basic-authentication-jwt:latest

or Docker Compose

version: '3'

services:

  backend:
    image: docker.pkg.github.com/qwertmax/golang-basic-authentication-jwt/golang-basic-authentication-jwt:latest
    environment:
      - DB_HOST=0.0.0.0
      - DB_PORT=5432
      - DB_USER=postgres
      - DB_PASSWORD=my-secret-password
      - DB_NAME=golang
    ports:
      - "8000:8000"

  db:
    image: postgres:latest
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=1
      - POSTGRES_DB=golang
    volumes:
      - ./postgres-data:/var/lib/postgresql/data

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL