29 lines
737 B
YAML
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
|