Skip to content

Commit

Permalink
Add volume for postgres !
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Aug 15, 2023
1 parent 35b4a62 commit a71eb72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ frontend/.pnp.js

# testing
frontend/coverage
postgres-data/*

# production
frontend/build
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- POSTGRES_DB=ai
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- "5434:5432"

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a71eb72

Please sign in to comment.