diff --git a/docker-compose.yml b/docker-compose.yml index b9e51d0..da00366 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,9 +43,32 @@ services: secrets: - 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: db: name: wiki-js_db-data + db_tmp: + name: wikijs_db_tmp networks: internal: