add Docker Compose configuration for Traefik and MySQL, update environment variables
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 44s

This commit is contained in:
Flavio Fois
2026-03-25 12:14:35 +01:00
parent 858b0642d9
commit 09a760e025
3 changed files with 175 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"log"
"net/http"
"os"
"time"
"github.com/go-chi/chi/v5"
@@ -23,6 +24,10 @@ func main() {
// Load .env (ignored if not present in production)
_ = godotenv.Load()
if name := os.Getenv("INSTANCE_NAME"); name != "" {
log.SetPrefix("[" + name + "] ")
}
cfg := config.Load()
db, err := database.Connect(cfg)