38 lines
1.5 KiB
Django/Jinja
38 lines
1.5 KiB
Django/Jinja
# -----------------------------------------------------------------------------
|
|
# Casdoor Docker Compose
|
|
# -----------------------------------------------------------------------------
|
|
# Casdoor SSO - connects to native PostgreSQL on localhost
|
|
# Generated by Ansible - do not edit manually
|
|
# -----------------------------------------------------------------------------
|
|
|
|
services:
|
|
# ---------------------------------------------------------------------------
|
|
# Casdoor - SSO Identity Provider
|
|
# ---------------------------------------------------------------------------
|
|
casdoor:
|
|
image: casbin/casdoor:latest
|
|
pull_policy: always
|
|
container_name: casdoor
|
|
network_mode: host # Access localhost PostgreSQL directly
|
|
environment:
|
|
RUNNING_IN_DOCKER: "true"
|
|
user: "{{ casdoor_uid }}:{{ casdoor_gid }}"
|
|
volumes:
|
|
- ./conf:/conf:ro
|
|
logging:
|
|
driver: syslog
|
|
options:
|
|
syslog-address: "tcp://127.0.0.1:{{ casdoor_syslog_port }}"
|
|
syslog-format: "{{ syslog_format | default('rfc3164') }}"
|
|
tag: "casdoor"
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
# curl is installed in the casbin/casdoor image (see upstream Dockerfile);
|
|
# wget is not guaranteed to be present, and BusyBox wget --spider behaves
|
|
# inconsistently. Use `curl -f` per ouranos.md standards.
|
|
test: ["CMD", "curl", "-f", "http://localhost:{{ casdoor_port }}/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|