Create temporary database container for Postgres 15 (no direct upgrade from 11 to 17 possible)
This commit is contained in:
parent
fb2814230a
commit
592ec3a003
@ -43,9 +43,32 @@ services:
|
|||||||
secrets:
|
secrets:
|
||||||
- db_pass
|
- db_pass
|
||||||
|
|
||||||
|
db_tmp:
|
||||||
|
image: postgres:15
|
||||||
|
container_name: wikijs_db_tmp
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD-SHELL", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER" ]
|
||||||
|
start_period: 20s
|
||||||
|
interval: 30s
|
||||||
|
retries: 5
|
||||||
|
timeout: 5s
|
||||||
|
volumes:
|
||||||
|
- db_tmp:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: $DATABASE
|
||||||
|
POSTGRES_USER: $DATABASE_USER
|
||||||
|
POSTGRES_PASSWORD_FILE: /run/secrets/db_pass
|
||||||
|
secrets:
|
||||||
|
- db_pass
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
||||||
name: wiki-js_db-data
|
name: wiki-js_db-data
|
||||||
|
db_tmp:
|
||||||
|
name: wikijs_db_tmp
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user