From a71eb722b1650ed412facfc86717f65406f48508 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Tue, 15 Aug 2023 18:25:17 +0545 Subject: [PATCH] Add volume for postgres ! --- .gitignore | 1 + docker-compose.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index db7d4292..e54e1552 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ frontend/.pnp.js # testing frontend/coverage +postgres-data/* # production frontend/build diff --git a/docker-compose.yml b/docker-compose.yml index 263647eb..7d949280 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,8 @@ services: - POSTGRES_DB=ai - POSTGRES_USER=postgres - POSTGRES_PASSWORD=admin + volumes: + - ./postgres-data:/var/lib/postgresql/data ports: - "5434:5432" @@ -45,7 +47,7 @@ services: context: ./backend dockerfile: Dockerfile container_name: worker - command: celery -A aiproject worker --loglevel=INFO + command: celery -A aiproject worker --loglevel=INFO --concurrency=1 deploy: resources: reservations: