-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Eigenständiger Lizenzserver-Stack — unabhängig von InkFlow deploybar.
# cp .env.example .env && docker compose up
services:
postgres:
image: postgres:16-alpine
container_name: license_postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-license}
POSTGRES_PASSWORD: ${DB_PASSWORD:-license_dev_pw}
POSTGRES_DB: ${DB_NAME:-licenses}
ports:
# Eigener Host-Port (5433), um nicht mit InkFlows Postgres zu kollidieren.
- "127.0.0.1:5433:5432"
volumes:
- license_db:/var/lib/postgresql/data
healthcheck:
# -d angeben, sonst prüft pg_isready gegen DB = Benutzername ("license"),
# die nicht existiert → wiederholte FATAL-Logs.
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-license} -d ${DB_NAME:-licenses}"]
interval: 10s
timeout: 5s
retries: 5
license-server:
build:
context: .
container_name: license_server
restart: unless-stopped
environment:
NODE_ENV: production
LICENSE_PORT: 8080
DATABASE_URL: postgres://${DB_USER:-license}:${DB_PASSWORD:-license_dev_pw}@postgres:5432/${DB_NAME:-licenses}
ADMIN_API_KEY: ${ADMIN_API_KEY:?ADMIN_API_KEY erforderlich}
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
volumes:
license_db: