Skip to content

Instantly share code, notes, and snippets.

View andrelsf's full-sized avatar
:octocat:
Focusing

Andre Ferreira andrelsf

:octocat:
Focusing
  • Itau
  • Goiânia/Goias - Brazil
View GitHub Profile
version: "3.5"
services:
psql-beers:
image: postgres:13.3-alpine
hostname: postgresql-server
labels:
br.dev.multicode.author: "Andre Ferreira <andre.dev.linux@gmail.com>"
br.dev.multicode.license: "MIT"
expose:
databaseChangeLog:
- include:
file: liquibase/migrations/V001-CREATE-TABLE-BEERS.yml
liquibase:
enabled: true
change-log: "liquibase/changelog.yml"
url: ${spring.datasource.url}
user: ${spring.datasource.username}
password: ${spring.datasource.password}
drop-first: false
driver-class-name: ${spring.datasource.driver-class-name}
@andrelsf
andrelsf / log_request.go
Created October 19, 2019 14:26 — forked from hoitomt/log_request.go
Golang: Log HTTP Requests in Go
package main
import (
"fmt"
"log"
"net/http"
"os"
)
func main() {