2022-03-31 14:40:40 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
pg:
|
|
|
|
image: postgres:latest
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: shad-go
|
|
|
|
POSTGRES_USER: gopher
|
|
|
|
POSTGRES_PASSWORD: pass
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
2024-06-05 17:36:34 +00:00
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER}" ]
|
|
|
|
interval: 1s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 5
|