From 525202c9317948055effa6ba274ba5a3f6f58113 Mon Sep 17 00:00:00 2001 From: dmtai Date: Fri, 19 Apr 2024 13:57:52 +0700 Subject: [PATCH] fix dbname (#32) --- Makefile | 2 +- docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bfdb153..c24d0f0 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ format: # Internal hidden targets that are used only in docker environment --in-docker-start-debug --in-docker-start-release: --in-docker-start-%: install-% - psql 'postgresql://user:password@service-postgres:5432/pg_service_template_db-1' -f ./postgresql/data/initial_data.sql + psql 'postgresql://user:password@service-postgres:5432/pg_service_template_db_1' -f ./postgresql/data/initial_data.sql /home/user/.local/bin/pg_service_template \ --config /home/user/.local/etc/pg_service_template/static_config.yaml \ --config_vars /home/user/.local/etc/pg_service_template/config_vars.docker.yaml diff --git a/docker-compose.yml b/docker-compose.yml index 2dc08be..587fdb9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: container_name: service-postgres image: postgres:12 environment: - - POSTGRES_DB=pg_service_template_db-1 + - POSTGRES_DB=pg_service_template_db_1 - POSTGRES_USER=user - POSTGRES_PASSWORD=password ports: @@ -20,7 +20,7 @@ services: image: ghcr.io/userver-framework/ubuntu-22.04-userver-pg:latest privileged: true environment: - - POSTGRES_DB=pg_service_template_db-1 + - POSTGRES_DB=pg_service_template_db_1 - POSTGRES_USER=user - POSTGRES_PASSWORD=password - PREFIX=${PREFIX:-~/.local}