fix wikijs
This commit is contained in:
@@ -4,40 +4,34 @@
|
|||||||
# logo: svgs/wikijs.svg
|
# logo: svgs/wikijs.svg
|
||||||
# port: 80
|
# port: 80
|
||||||
|
|
||||||
version: "3"
|
|
||||||
services:
|
services:
|
||||||
db:
|
wikijs:
|
||||||
image: postgres:15-alpine
|
image: ghcr.io/requarks/wiki:2
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: wiki
|
- SERVICE_FQDN_WIKIJS_3000
|
||||||
POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES}
|
- DB_TYPE=postgres
|
||||||
POSTGRES_USER: ${SERVICE_USER_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}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 10
|
retries: 10
|
||||||
logging:
|
logging:
|
||||||
driver: "none"
|
driver: none
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- wikijs-postgresql-data:/var/lib/postgresql/data
|
||||||
|
|
||||||
wiki:
|
|
||||||
image: ghcr.io/requarks/wiki:2
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
environment:
|
|
||||||
DB_TYPE: postgres
|
|
||||||
DB_HOST: db
|
|
||||||
DB_PORT: 5432
|
|
||||||
DB_USER: ${SERVICE_USER_POSTGRES}
|
|
||||||
DB_PASS: ${SERVICE_PASSWORD_POSTGRES}
|
|
||||||
DB_NAME: wiki
|
|
||||||
SERVICE_FQDN_WIKI_3000:
|
|
||||||
healthcheck:
|
|
||||||
test: curl --fail http://localhost:3000 || exit 1
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
db-data:
|
|
||||||
|
|||||||
Reference in New Issue
Block a user