version: "3.8"
networks:
internal:
external: false
volumes:
tixedb_data:
driver: local
services:
tixedb:
image: postgres:15-alpine
container_name: tixedb
restart: always
networks:
- internal
volumes:
- tixedb_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: tixe
POSTGRES_PASSWORD: tixe
POSTGRES_DB: tixe
tixe:
build: .
image: tixe
container_name: tixe
restart: always
networks:
- internal
ports:
- 8080:8080
environment:
TZ: Europe/Helsinki
GIN_MODE: release # or "debug" for debug logs
TIXE_PSQL_HOST: tixedb
TIXE_PSQL_PORT: 5432
TIXE_PSQL_USER: tixe
TIXE_PSQL_PASSWORD: tixe
TIXE_PSQL_DB: tixe
TIXE_OIDC_GITHUB: false
TIXE_OIDC_CUSTOM: true
depends_on:
- tixedb