Skip to content

Commit

Permalink
feat: add VOLUMES_PATH to environment variables and update docker-com…
Browse files Browse the repository at this point in the history
…pose volume configuration
  • Loading branch information
Ganthepro committed Nov 29, 2024
1 parent c9d5f4e commit 6d4fac3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
echo "ADMIN_PASSWORD=${{ secrets.ADMIN_PASSWORD }}" >> .env
echo "AI_URL=${{ secrets.AI_URL }}" >> .env
echo "API_URL=${{ secrets.API_URL }}" >> .env
echo "API_URL=${{ secrets.API_URL }}" >> .env
echo "VOLUMES_PATH=${{ secrets.VOLUMES_PATH }}" >> .env
cat .env
- name: Running Docker Compose
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ${VOLUMES_PATH}:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME}']
interval: 10s
Expand Down

0 comments on commit 6d4fac3

Please sign in to comment.