db/docker-compose.yml

29 lines
737 B
YAML
Raw Normal View History

2023-07-19 23:36:10 +00:00
version: '3'
name: 'dnim_db'
2023-06-08 20:44:06 +00:00
services:
base:
2023-07-19 23:36:10 +00:00
container_name: 'base'
network_mode: 'host'
image: 'postgres:15.3-bullseye'
env_file: ['./.env.schema']
2023-07-19 23:46:33 +00:00
volumes: ['/var/run/postgresql:/var/run/postgresql']
2023-07-20 02:02:24 +00:00
command: '-p 5432'
2023-07-20 05:35:54 +00:00
healthcheck:
2023-07-20 18:13:02 +00:00
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
2023-07-20 05:41:55 +00:00
interval: 1s
timeout: 1s
2023-07-20 17:00:43 +00:00
retries: 30
2023-06-08 20:44:06 +00:00
head:
2023-07-19 23:36:10 +00:00
container_name: 'head'
network_mode: 'host'
image: 'postgres:15.3-bullseye'
restart: 'always'
env_file: ['./.env.schema']
2023-07-19 23:46:33 +00:00
volumes: ['/var/run/postgresql:/var/run/postgresql']
2023-07-20 02:02:24 +00:00
command: '-p 5433'
2023-07-20 05:35:54 +00:00
healthcheck:
2023-07-20 18:13:02 +00:00
test: [ "CMD-SHELL", "pg_isready -U postgres -p 5433" ]
2023-07-20 05:41:55 +00:00
interval: 1s
timeout: 1s
2023-07-20 17:00:43 +00:00
retries: 30