From d3a5917bb913b301ecf35988b8db02e0f5c0414e Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Tue, 19 Mar 2024 20:07:06 +1100 Subject: [PATCH] Fix database refusing to start --- docker-compose.bot.yml | 2 +- docker-compose.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docker-compose.bot.yml b/docker-compose.bot.yml index 93285ee..6e6197c 100644 --- a/docker-compose.bot.yml +++ b/docker-compose.bot.yml @@ -1,6 +1,6 @@ services: bot: - container_name: daggerbot-prod + container_name: daggerbot build: . restart: unless-stopped volumes: diff --git a/docker-compose.yml b/docker-compose.yml index f25b3a0..fc3cfb4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,15 +6,13 @@ services: ports: - 6379:6379/tcp db: - container_name: postgres-master + container_name: postgres image: postgres:16.2-alpine3.19 restart: unless-stopped ports: - 5432:5432/tcp volumes: - /var/lib/docker/volumes/daggerbot-db:/var/lib/postgresql/data:rw - - ./postgres-replica-stuff/configs/postgres-hba.conf:/var/lib/postgresql/data/pg_hba.conf:rw - - ./postgres-replica-stuff/configs/postgres.conf:/var/lib/postgresql/data/postgresql.conf:rw environment: POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}