Files
arbeitszeitmessung/Docker/docker-compose.yml
Tom Tröger c10ab98997
Some checks failed
Arbeitszeitmessung Deploy / Build Webserver (push) Failing after 1m14s
Tests / Run Go Tests (push) Successful in 1m48s
fixed problem, where migrate could not connect to db
2026-01-18 22:42:07 +01:00

31 lines
679 B
YAML

name: arbeitszeitmessung-main
services:
db:
image: postgres:16
restart: unless-stopped
env_file:
- .env
environment:
PGTZ: ${TZ}
PGDATA: /var/lib/postgresql/data/pg_data
volumes:
- ${POSTGRES_PATH}:/var/lib/postgresql/data
- ${POSTGRES_PATH}/initdb:/docker-entrypoint-initdb.d
ports:
- ${POSTGRES_PORT}:5432
backend:
image: git.letsstein.de/tom/arbeitszeitmessung-webserver
env_file:
- .env
environment:
POSTGRES_HOST: db
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${WEB_PORT}:8080
depends_on:
- db
volumes:
- ${LOG_PATH}:/app/logs
restart: unless-stopped