change docker entrypoint to clear content
This commit is contained in:
+8
-3
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user