Skip to content

Commit

Permalink
fix: Handle issue with env files
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 18, 2024
1 parent a0c7476 commit 2ac4a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ version: '3.8'
services:
backup:
image: postgres:latest
env_file: .env
volumes:
- ./backups:/backups
command: >
Expand All @@ -12,6 +11,6 @@ services:
-U \"\$POSTGRES_USER\"
-d \"\$POSTGRES_DATABASE\"
-F c -b -v -w
-f \"/backups/\$(date +%F).dump\""
-f \"/backups/\$(date +'%Y-%m-%d_%H-%M-%S').dump\""
profiles:
- backup
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"backup": "docker-compose --profile backup up",
"backup": "docker-compose --profile backup --env-file .env.production up",
"build": "npm run prisma:generate && next build",
"start": "next start",
"lint": "next lint",
Expand Down

0 comments on commit 2ac4a7d

Please sign in to comment.