mirror of
https://github.com/acepanel/templates.git
synced 2026-02-04 08:57:16 +08:00
feat: init
This commit is contained in:
23
postgresql/docker-compose.yml
Normal file
23
postgresql/docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18.1-alpine
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRESQL_DB_ROOT_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRESQL_DB_ROOT_PASSWORD}
|
||||
ports:
|
||||
- ${POSTGRESQL_PORT}:5432
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-p", "5432", "-q", "-U", "${POSTGRESQL_DB_ROOT_USER}"]
|
||||
start_period: 20s
|
||||
interval: 30s
|
||||
retries: 5
|
||||
timeout: 5s
|
||||
networks:
|
||||
- acepanel-network
|
||||
|
||||
networks:
|
||||
acepanel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user