api

command module
v0.0.0-...-2848f9a Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 9 Imported by: 0

README

Create Network

docker network create -d bridge dev-network

PostgreSQL and initial Migration

docker run --rm -d
--name dev-postgres
--network dev-network
-e POSTGRES_USER=postgres
-e POSTGRES_PASSWORD=password
-e POSTGRES_DB=postgres
-v ${HOME}/dev-postgres/data/:/var/lib/postgresql/data
-p 5432:5432
postgres

docker run --rm -d --name dev-postgres --network dev-network -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=postgres -v ${HOME}/dev-postgres/data/:/var/lib/postgresql/data -p 5432:5432 postgres

Migrate

migrate -path ./migrations -database "postgres://postgres:password@localhost/postgres?sslmode=disable" up

Build Fiber docker Image ( DockerFile )

docker build -t fiber .

Create and start container from image

docker run --rm -d --name dev-fiber --network dev-network -p 5000:5000 fiber

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
platform

Jump to

Keyboard shortcuts

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