db/docker-compose.yml
Orion Kindel 60a672d45c
Some checks reported warnings
gen-migrations / gen-migrations (push) Has been cancelled
fix: improve gen_migrations and diff
2023-07-20 12:01:08 -05:00

29 lines
713 B
YAML

version: '3'
name: 'dnim_db'
services:
base:
container_name: 'base'
network_mode: 'host'
image: 'postgres:15.3-bullseye'
env_file: ['./.env.schema']
volumes: ['/var/run/postgresql:/var/run/postgresql']
command: '-p 5432'
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 1s
timeout: 1s
retries: 30
head:
container_name: 'head'
network_mode: 'host'
image: 'postgres:15.3-bullseye'
restart: 'always'
env_file: ['./.env.schema']
volumes: ['/var/run/postgresql:/var/run/postgresql']
command: '-p 5433'
healthcheck:
test: [ "CMD-SHELL", "pg_isready -p 5433" ]
interval: 1s
timeout: 1s
retries: 30