change docker entrypoint to clear content

This commit is contained in:
Zeecka
2025-12-31 05:28:58 +01:00
parent fc02dcab80
commit ddce01ec8d
4 changed files with 25 additions and 17 deletions
+8 -3
View File
@@ -39,11 +39,12 @@ services:
- .env
postgres:
image: postgres:14
image: postgres:18
container_name: postgres
restart: always
tmpfs:
- /var/lib/postgresql
entrypoint: ["/bin/sh", "-c", "rm -rf /var/lib/postgresql/* && docker-entrypoint.sh postgres"]
volumes:
- pgdata:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aperiuser -d aperisolve"]
interval: 5s
@@ -69,3 +70,7 @@ services:
- redis
env_file:
- .env
volumes:
apresults:
pgdata: