Include Postgres 17 container

This commit is contained in:
Akumatic 2025-01-31 21:41:13 +01:00
parent 4d950b4be0
commit 63f9cd10d1

View File

@ -5,7 +5,8 @@ services:
image: requarks/wiki:2 image: requarks/wiki:2
container_name: wikijs container_name: wikijs
depends_on: depends_on:
- db - db_tmp
- db_17
restart: unless-stopped restart: unless-stopped
#ports: #ports:
# - "3000:3000" # http # - "3000:3000" # http
@ -22,9 +23,9 @@ services:
secrets: secrets:
- db_pass - db_pass
db: db_17:
image: postgres:11-alpine image: postgres:17
container_name: wikijs_db container_name: wikijs_db_pg17
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER" ] test: [ "CMD-SHELL", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER" ]
@ -33,7 +34,7 @@ services:
retries: 5 retries: 5
timeout: 5s timeout: 5s
volumes: volumes:
- db:/var/lib/postgresql/data - db_17:/var/lib/postgresql/data
networks: networks:
- internal - internal
environment: environment:
@ -65,8 +66,8 @@ services:
- db_pass - db_pass
volumes: volumes:
db: db_17:
name: wiki-js_db-data name: wikijs_db_pg17
db_tmp: db_tmp:
name: wikijs_db_tmp name: wikijs_db_tmp