mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-05 13:21:49 +02:00
23 lines
516 B
YAML
23 lines
516 B
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:13
|
|
container_name: postgres_chariotte
|
|
restart: always
|
|
healthcheck:
|
|
test: /usr/bin/pg_isready
|
|
interval: 3s
|
|
timeout: 30s
|
|
retries: 5
|
|
start_period: 5s
|
|
environment:
|
|
POSTGRES_PORT: ${POSTGRES_PORT}
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
ports:
|
|
- ${POSTGRES_PORT}:5432
|
|
volumes:
|
|
- ./postgres-data:/var/lib/postgresql/data
|
|
|