coolify/templates/compose/wikijs.yaml

39 lines
1.1 KiB
YAML
Raw Normal View History

2024-11-05 23:21:40 +00:00
# documentation: https://docs.requarks.io
# slogan: The most powerful and extensible open source Wiki software.
# category: cms
2024-11-05 23:21:40 +00:00
# tags: wiki, collaboration, documentation
# logo: svgs/wikijs.svg
# port: 80
services:
2024-11-08 13:29:39 +00:00
wikijs:
image: ghcr.io/requarks/wiki:2
depends_on:
- postgres
2024-11-05 23:21:40 +00:00
environment:
- SERVICE_URL_WIKIJS_3000
2024-11-08 13:29:39 +00:00
- DB_TYPE=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=${SERVICE_USER_POSTGRES}
- DB_PASS=${SERVICE_PASSWORD_POSTGRES}
- DB_NAME=${POSTGRESQL_DATABASE:-wiki-db}
healthcheck:
test: curl --fail http://localhost:3000 || exit 1
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_DB=${POSTGRESQL_DATABASE:-wiki-db}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
2024-11-05 23:21:40 +00:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
retries: 10
logging:
2024-11-08 13:29:39 +00:00
driver: none
2024-11-05 23:21:40 +00:00
volumes:
2024-11-08 13:29:39 +00:00
- wikijs-postgresql-data:/var/lib/postgresql/data