2023-11-20 15:32:32 +00:00
|
|
|
services:
|
|
|
|
pocketbase:
|
2024-03-27 16:58:49 +00:00
|
|
|
image: git.stuve.uni-ulm.de/stuve-it/stuve-it-backend:latest
|
2023-11-20 15:32:32 +00:00
|
|
|
#command:
|
|
|
|
# - "--debug"
|
|
|
|
container_name: stuve_it_backend
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- pb_data:/pb_data
|
|
|
|
healthcheck:
|
|
|
|
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
environment:
|
|
|
|
|
|
|
|
LDAP_URL: "ldap://dc.stuve.uni-ulm.de"
|
|
|
|
|
|
|
|
LDAP_BIND_DN: "cn=ldapsync,ou=systemaccounts,ou=user,dc=stuve,dc=uni-ulm,dc=de"
|
2024-03-27 16:58:49 +00:00
|
|
|
LDAP_BIND_PASSWORD: "***************"
|
2023-11-20 15:32:32 +00:00
|
|
|
|
|
|
|
LDAP_BASE_DN: "ou=useraccounts,ou=user,dc=stuve,dc=uni-ulm,dc=de"
|
|
|
|
LDAP_USER_FILTER: "(|(objectCategory=person)(objectClass=user))"
|
|
|
|
|
2024-03-27 16:58:49 +00:00
|
|
|
LDAP_ADMIN_GROUP_DN: "cn=ref-computer,ou=groups,ou=user,dc=stuve,dc=uni-ulm,dc=de"
|
|
|
|
|
2023-11-20 15:32:32 +00:00
|
|
|
LDAP_GROUP_FILTER: "(objectClass=group)"
|
|
|
|
LDAP_GROUP_BASE_DN: "ou=groups,ou=user,dc=stuve,dc=uni-ulm,dc=de"
|
|
|
|
|
|
|
|
LDAP_SYNC_SCHEDULE: "*/1 * * * *"
|
|
|
|
|
2024-03-27 16:58:49 +00:00
|
|
|
networks:
|
|
|
|
- traefik-network
|
|
|
|
labels:
|
|
|
|
# enable traefik for this container
|
|
|
|
- "traefik.enable=true"
|
|
|
|
|
|
|
|
# https entrypoint
|
|
|
|
- "traefik.http.routers.it-tools_https.rule=Host(`it.stuve.uni-ulm.de`) && (PathPrefix(`/_/`) || PathPrefix(`/api/`))"
|
|
|
|
- "traefik.http.routers.it-tools_https.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.it-tools_https.tls=true"
|
|
|
|
- "traefik.http.routers.it-tools_https.tls.certResolver=http_resolver"
|
|
|
|
|
|
|
|
# the internal port of the container
|
|
|
|
- "traefik.http.services.it-tools.loadbalancer.server.port=8090"
|
|
|
|
|
2023-11-20 15:32:32 +00:00
|
|
|
volumes:
|
2024-03-27 16:58:49 +00:00
|
|
|
pb_data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik-network:
|
|
|
|
name: traefik-network
|
|
|
|
external: true
|