PostgreSQL 12-alpine com volume novo
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13-alpine
|
||||
image: postgres:12-alpine
|
||||
container_name: occto_postgres
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-admin}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-adminpassword}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-occto_db}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- postgres_data_v2:/var/lib/postgresql/data
|
||||
networks:
|
||||
- occto_network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-admin} -d ${POSTGRES_DB:-occto_db}"]
|
||||
test: ["CMD-SHELL", "pg_isready -U admin"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
minio:
|
||||
image: minio/minio:RELEASE.2023-09-04T19-57-37Z
|
||||
@@ -62,5 +62,5 @@ networks:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
postgres_data_v2:
|
||||
minio_data:
|
||||
|
||||
Reference in New Issue
Block a user