team-mapper/docker-compose.yml hinzugefügt

This commit is contained in:
2025-11-02 15:33:54 +01:00
parent 1a71bbb232
commit ea7cd9d171

View File

@@ -0,0 +1,51 @@
services:
db:
image: postgres:16
container_name: TeamMapper-DB
hostname: teammapper-db
mem_limit: 1g
cpu_shares: 768
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "teammapper", "-U", "teammapperuser"]
timeout: 45s
interval: 10s
retries: 10
volumes:
- /volume1/docker/teammapperdb:/var/lib/postgresql/data:rw
environment:
POSTGRES_DB: teammapper
POSTGRES_USER: teammapperuser
POSTGRES_PASSWORD: teammapperpass
restart: on-failure:5
teammapper:
image: ghcr.io/b310-digital/teammapper:latest
container_name: TeamMapper
hostname: teammapper
mem_limit: 1g
cpu_shares: 768
security_opt:
- no-new-privileges:true
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3000
ports:
- 3080:3000
environment:
MODE: PROD
BINDING: "0.0.0.0"
POSTGRES_HOST: teammapper-db
POSTGRES_PORT: 5432
POSTGRES_SSL: false
POSTGRES_SSL_REJECT_UNAUTHORIZED: false
POSTGRES_DATABASE: teammapper
POSTGRES_USER: teammapperuser
POSTGRES_PASSWORD: teammapperpass
POSTGRES_QUERY_TIMEOUT: 100000
POSTGRES_STATEMENT_TIMEOUT: 100000
DELETE_AFTER_DAYS: 30
restart: on-failure:5
depends_on:
db:
condition: service_started