Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .vscode/tasks.json
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you don't want this in the repository, but I find it useful to have when working in VS Code.

Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Docker: Start (watch)",
"type": "shell",
"command": "docker-compose up --watch",
"isBackground": true,
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "dedicated",
"focus": false
}
},
{
"label": "Docker: Stop",
"type": "shell",
"command": "docker-compose down",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "Docker: Rebuild",
"type": "shell",
"command": "docker-compose build",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "Docker: Rebuild and Start (watch)",
"type": "shell",
"command": "docker-compose down && docker-compose up --build --watch",
"isBackground": true,
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "dedicated",
"focus": false
}
},
{
"label": "Docker: View Logs",
"type": "shell",
"command": "docker-compose logs -f",
"isBackground": true,
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "dedicated"
}
},
{
"label": "Docker: Restart Containers",
"type": "shell",
"command": "docker-compose restart",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "shared"
}
}
]
}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ docker-compose up --watch

Visit http://localhost:3001 to see the application.

#### Rebuilding Containers

When you need to rebuild the Docker containers (after pulling updates, merging branches, or changing dependencies):

```bash
docker-compose down
docker-compose up --build --watch
```

**Note:**
- If you encounter port conflicts, check for existing services with `lsof -i :PORT_NUMBER`

Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was necessary in order to run the container on a Windows machine.

Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ services:
path: ./src
target: /app/src
- action: rebuild
path: ./package*.json
path: ./package.json
- action: rebuild
path: ./package-lock.json

volumes:
postgres_data:
Expand Down
Loading
Loading