fix network
This commit is contained in:
parent
a630174f7e
commit
6e9ca2e345
1 changed files with 20 additions and 3 deletions
|
@ -5,6 +5,8 @@ services:
|
||||||
image: postgres:${WIKIJS_POSTGRES_VERSION:-16}
|
image: postgres:${WIKIJS_POSTGRES_VERSION:-16}
|
||||||
container_name: wikijs-db
|
container_name: wikijs-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- wikijs
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${WIKIJS_POSTGRES_DATABASE:?error}
|
POSTGRES_DB: ${WIKIJS_POSTGRES_DATABASE:?error}
|
||||||
POSTGRES_PASSWORD: ${WIKIJS_POSTGRES_PASSWORD:?error}
|
POSTGRES_PASSWORD: ${WIKIJS_POSTGRES_PASSWORD:?error}
|
||||||
|
@ -18,13 +20,14 @@ services:
|
||||||
image: ghcr.io/requarks/wiki:${WIKIJS_VERSION:-2}
|
image: ghcr.io/requarks/wiki:${WIKIJS_VERSION:-2}
|
||||||
container_name: wikijs
|
container_name: wikijs
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
networks:
|
||||||
- db
|
- wikijs
|
||||||
|
- traefik
|
||||||
environment:
|
environment:
|
||||||
DB_TYPE: postgres
|
DB_TYPE: postgres
|
||||||
DB_HOST: db
|
DB_HOST: db
|
||||||
DB_PORT: 5432
|
DB_PORT: 5432
|
||||||
DB_USER: ${WIKIJS_POSTGRES_user:-wikijs}
|
DB_USER: ${WIKIJS_POSTGRES_USER:-wikijs}
|
||||||
DB_PASS: ${WIKIJS_POSTGRES_PASSWORD:?error}
|
DB_PASS: ${WIKIJS_POSTGRES_PASSWORD:?error}
|
||||||
DB_NAME: ${WIKIJS_POSTGRES_DATABASE:?error}
|
DB_NAME: ${WIKIJS_POSTGRES_DATABASE:?error}
|
||||||
labels:
|
labels:
|
||||||
|
@ -39,6 +42,20 @@ services:
|
||||||
- "traefik.http.routers.wikijs-secure.tls=true"
|
- "traefik.http.routers.wikijs-secure.tls=true"
|
||||||
- "traefik.http.routers.wikijs-secure.service=wikijs"
|
- "traefik.http.routers.wikijs-secure.service=wikijs"
|
||||||
- "traefik.http.services.wikijs.loadbalancer.server.port=3000"
|
- "traefik.http.services.wikijs.loadbalancer.server.port=3000"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 90s
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
wikijs:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
Loading…
Add table
Reference in a new issue