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_USER: tixe
TIXE_PSQL_PASSWORD: tixe
TIXE_PSQL_DB: tixe
TIXE_COOKIE_SECRET: secret
TIXE_OIDC_DOMAIN: auth.example.com
TIXE_OIDC_CLIENTID: tixeclient
TIXE_OIDC_SECRET: secret
depends_on:
- tixedb