Setup postgresql

This commit is contained in:
2023-09-16 16:57:57 +02:00
parent 875ccd7336
commit aea27c6181
10 changed files with 148 additions and 5 deletions
+13
View File
@@ -21,3 +21,16 @@ services:
restart: on-failure
env_file:
- .env
postgres:
image: postgres:15
restart: on-failure
env_file:
- ./.env
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5