You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# docker-compose.yml
|
|
|
|
# Wiki.js Docker Hub: https://hub.docker.com/r/requarks/wiki
|
|
|
|
# The Wiki.js WebUI can be found at http://<HOST_IP>:<WIKIJS_WEBUI_PORT>
|
|
|
|
# postgres Docker Hub: https://hub.docker.com/_/postgres
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
<NETWORK_NAME>:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
wikijs:
|
|
|
|
container_name: wikijs
|
|
|
|
depends_on:
|
|
|
|
- wikijs-db
|
|
|
|
environment:
|
|
|
|
- DB_TYPE=postgres
|
|
|
|
- DB_HOST=wikijs-db
|
|
|
|
- DB_PORT=5432
|
|
|
|
- DB_USER=wikijs
|
|
|
|
- DB_NAME=wiki
|
|
|
|
- DB_PASS=<PASSWORD>
|
|
|
|
image: requarks/wiki:<VERSION_TAG>
|
|
|
|
networks:
|
|
|
|
- <NETWORK_NAME>
|
|
|
|
ports:
|
|
|
|
- "3000:3000" # Wiki.js WebUI Port
|
|
|
|
restart: unless-stopped
|
|
|
|
wikijs-db:
|
|
|
|
container_name: wikijs-db
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=wikijs
|
|
|
|
- POSTGRES_DB=wiki
|
|
|
|
- POSTGRES_PASSWORD=<PASSWORD>
|
|
|
|
image: postgres:<VERSION_TAG>
|
|
|
|
logging:
|
|
|
|
driver: "none"
|
|
|
|
networks:
|
|
|
|
- <NETWORK_NAME>
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/postgresql/data
|