Compose-Examples/examples/wikijs/docker-compose.yml

58 lines
1.7 KiB
YAML
Raw Normal View History

2023-02-15 21:45:31 +00:00
services:
2023-02-15 21:45:31 +00:00
wikijs:
2024-10-01 08:22:38 +00:00
image: linuxserver/wikijs:latest
container_name: wikijs
restart: unless-stopped
2023-02-15 21:45:31 +00:00
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
2024-10-01 08:22:38 +00:00
- DB_TYPE=postgres
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=wikijs
- DB_USER=wikijs
- DB_PASS=MySecureDatabasePassword
expose:
- 3000
2023-02-15 21:45:31 +00:00
ports:
2024-02-16 21:15:08 +00:00
- 8888:3000 # WEB UI
2023-02-15 21:45:31 +00:00
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/config:/config
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/data:/data
2023-02-15 21:45:31 +00:00
links:
- db
2024-10-01 08:22:38 +00:00
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.docker.network=proxy
# - traefik.http.routers.wikijs.rule=Host(`wikijs.example.com`)
# - traefik.http.services.wikijs.loadbalancer.server.port=3000
# # Optional part for file upload max sizes
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000
# # Optional part for traefik middlewares
# - traefik.http.routers.wikijs.middlewares=local-ipwhitelist@file
2024-02-16 21:15:08 +00:00
2023-02-15 21:45:31 +00:00
db:
2024-10-01 08:22:38 +00:00
image: postgres:16-alpine
container_name: postgresql
2023-02-15 21:45:31 +00:00
environment:
- POSTGRES_PASSWORD=MySecureDatabasePassword
- POSTGRES_USER=wikijs
- POSTGRES_DB=wikijs
2024-10-01 08:22:38 +00:00
expose:
- 5432
2023-02-15 21:45:31 +00:00
restart: unless-stopped
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/database:/var/lib/postgresql/data
2024-10-01 08:22:38 +00:00
#networks:
# - proxy
#networks:
# proxy:
# external: true