mirror of
https://github.com/suitenumerique/docs.git
synced 2026-08-21 15:12:23 +02:00
## Purpose Make self hosting of Docs easier with an example of a deployment procedure with docker compose and document how to configure Docs. While https://github.com/suitenumerique/docs/pull/583 propose an easy way to deploy Docs with docker and Make, here we describe more in details the various steps and requirements to deploy Docs. ## Proposal - [x] example to deploy and configure keycloak - [x] example to deploy and configure minio - [x] example to configure proxy and certs - [x] example to deploy and configure Docs ## Improvements - [x] Rephrase description of environment variables and categorize - [x] Use template for nginx conf Fixes https://github.com/suitenumerique/docs/issues/561 Supersedes https://github.com/suitenumerique/docs/pull/583 A one liner quick start could be a nice addition: - [ ] merge all services in a single compose - [ ] scripts to generate secrets Signed-off-by: unteem <timothee@indie.host>
36 lines
978 B
YAML
36 lines
978 B
YAML
services:
|
|
kc_postgresql:
|
|
image: postgres:16
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
|
interval: 1s
|
|
timeout: 2s
|
|
retries: 300
|
|
env_file:
|
|
- env.d/kc_postgresql
|
|
volumes:
|
|
- ./data/keycloak:/var/lib/postgresql/data/pgdata
|
|
|
|
keycloak:
|
|
image: quay.io/keycloak/keycloak:26.1.3
|
|
command: ["start"]
|
|
env_file:
|
|
- env.d/kc_postgresql
|
|
- env.d/keycloak
|
|
# Uncomment and set your values if using our nginx proxy example
|
|
# environment:
|
|
# - VIRTUAL_HOST=id.yourdomain.tld # used by nginx proxy
|
|
# - VIRTUAL_PORT=8080 # used by nginx proxy
|
|
# - LETSENCRYPT_HOST=id.yourdomain.tld # used by lets encrypt to generate TLS certificate
|
|
depends_on:
|
|
kc_postgresql::
|
|
condition: service_healthy
|
|
restart: true
|
|
# Uncomment if using our nginx proxy example
|
|
# networks:
|
|
# - proxy-tier
|
|
# - default
|
|
#
|
|
#networks:
|
|
# proxy-tier:
|
|
# external: true |