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