docker-services/internals/wikijs/docker-compose.yaml

35 lines
815 B
YAML
Raw Permalink Normal View History

2024-10-19 16:49:44 +02:00
services:
db:
2024-10-25 14:00:38 +02:00
image: postgres:17
2024-10-19 17:10:49 +02:00
env_file:
- .env
2024-10-19 16:49:44 +02:00
logging:
driver: "none"
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
server:
image: ghcr.io/requarks/wiki:2.5.305
depends_on:
- db
environment:
DB_TYPE: postgres
DB_HOST: db
DB_PORT: 5432
2024-10-19 17:10:49 +02:00
env_file:
- .env
2024-10-19 16:49:44 +02:00
restart: unless-stopped
ports:
- "8082:3000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.wikijs.entryPoints=websecure"
- "traefik.http.routers.wikijs.rule=Host(`doc.net.enpls.org`)"
- "traefik.http.routers.wikijs.tls=true"
- "traefik.http.routers.wikijs.tls.certresolver=defaultacme"
- "traefik.http.routers.wikijs.middlewares=proxyHeader@file,proxyError@file"
volumes:
db-data: