db/docker-compose.yml

29 lines
703 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:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 5s
timeout: 5s
retries: 5
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:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 5s
timeout: 5s
retries: 5