From c93764962826deaf75bac27b3a1e1db3a7d91d30 Mon Sep 17 00:00:00 2001 From: lcaohoanq Date: Mon, 9 Dec 2024 16:26:52 +0700 Subject: [PATCH] feat: mount postgres_data on local --- SPCServer/springboot/.gitignore | 3 ++- SPCServer/springboot/docker/docker-compose-dev.yml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/SPCServer/springboot/.gitignore b/SPCServer/springboot/.gitignore index 7dc5e93..7ff7705 100644 --- a/SPCServer/springboot/.gitignore +++ b/SPCServer/springboot/.gitignore @@ -43,4 +43,5 @@ allure-results/ *.txt docker/redis-data/ #uploads/ -data/ \ No newline at end of file +data/ +docker/postgres_data/ \ No newline at end of file diff --git a/SPCServer/springboot/docker/docker-compose-dev.yml b/SPCServer/springboot/docker/docker-compose-dev.yml index 0226769..c8a8c9b 100644 --- a/SPCServer/springboot/docker/docker-compose-dev.yml +++ b/SPCServer/springboot/docker/docker-compose-dev.yml @@ -15,7 +15,7 @@ services: ports: - "5432:5432" volumes: - - postgres_data:/var/lib/postgresql/data + - ./postgres_data:/var/lib/postgresql/data pgadmin: image: dpage/pgadmin4:latest @@ -70,8 +70,8 @@ services: # networks: # - shoppe_network -volumes: - postgres_data: - driver: local +#volumes: +# postgres_data: +# driver: local # grafana_data: # driver: local