feat: added persistence to minio and postgresql

This commit is contained in:
Fu Zi Xiang 2023-11-09 19:15:21 +08:00
parent 71ee5c1d0b
commit ad948033eb
No known key found for this signature in database
1 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,8 @@ services:
environment:
- MINIO_BROWSER_REDIRECT_URL=http://localhost/minio
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
postgres:
restart: on-failure
@ -60,6 +62,7 @@ services:
- 5433:5432
volumes:
- ./migrations/before:/docker-entrypoint-initdb.d
- postgres_data:/var/lib/postgresql/data
pgadmin:
restart: on-failure
@ -163,3 +166,7 @@ services:
- gotrue
ports:
- 3000:3000
volumes:
postgres_data:
minio_data: