db/docker-compose.yml
Orion Kindel 3c7189c657
Some checks failed
gen-migrations / gen-migrations (push) Failing after 25s
fix: gen-migrations
2023-07-20 13:13:02 -05:00

29 lines
737 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 -U postgres" ]
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 -U postgres -p 5433" ]
interval: 1s
timeout: 1s
retries: 30