mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00
27 lines
555 B
YAML
27 lines
555 B
YAML
services:
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
container_name: postgres
|
|
environment:
|
|
POSTGRES_DB: signoz
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: password
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"pg_isready",
|
|
"-d",
|
|
"signoz",
|
|
"-U",
|
|
"postgres"
|
|
]
|
|
interval: 30s
|
|
timeout: 30s
|
|
retries: 3
|
|
restart: on-failure
|
|
ports:
|
|
- "127.0.0.1:5432:5432/tcp"
|
|
volumes:
|
|
- ${PWD}/fs/tmp/var/lib/postgresql/data/:/var/lib/postgresql/data/ |