37 lines
859 B
YAML
37 lines
859 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
|
|
- document-creator
|
|
volumes:
|
|
- ../logs:/app/Backend/logs
|
|
restart: unless-stopped
|
|
|
|
document-creator:
|
|
image: git.letsstein.de/tom/arbeitszeitmessung-doc-creator
|
|
container_name: ${TYPST_CONTAINER}
|
|
restart: unless-stopped
|