Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .examples/docker/docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
env_file:
- db.env
app:
image: librebooking/librebooking:4.1.0
image: librebooking/librebooking:develop
restart: always
depends_on:
- db
Expand All @@ -20,7 +20,7 @@ services:
env_file:
- lb.env
cron:
image: librebooking/librebooking:4.1.0
image: librebooking/librebooking:develop
restart: always
user: root
entrypoint: /usr/local/bin/cron.sh
Expand Down
8 changes: 4 additions & 4 deletions .examples/docker/docker-compose-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- db_root_pwd
- db_user_pwd
lb1:
image: librebooking/librebooking:4.1.0
image: librebooking/librebooking:develop
restart: always
depends_on:
- db
Expand All @@ -54,7 +54,7 @@ services:
- lb_install_pwd
- lb_user_pwd
job1:
image: librebooking/librebooking:4.1.0
image: librebooking/librebooking:develop
restart: always
depends_on:
- lb1
Expand All @@ -67,7 +67,7 @@ services:
secrets:
- lb_user_pwd
lb2:
image: librebooking/librebooking:4.1.0
image: librebooking/librebooking:develop
restart: always
depends_on:
- db
Expand All @@ -85,7 +85,7 @@ services:
- lb_install_pwd
- lb_user_pwd
job2:
image: librebooking/librebooking:4.1.0
image: librebooking/librebooking:develop
restart: always
depends_on:
- lb2
Expand Down
113 changes: 113 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"version": "2.0.0",
"tasks": [
// Logging
{
"label": "Logs: librebooking (docker)",
"command": "docker compose --file docker-compose-local.yml logs app -f",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/.examples/docker",
"env": {
"DOCKER_HOST": "unix:///run/docker.sock" // Sometimes the tasks shell doesnt inherit .bashrc DOCKER_HOST, neither the docker context
}
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Logs: db (docker)",
"command": "docker compose --file docker-compose-local.yml logs db -f",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/.examples/docker",
"env": {
"DOCKER_HOST": "unix:///run/docker.sock"
}
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Logs: cron (docker)",
"command": "docker compose --file docker-compose-local.yml logs cron -f",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/.examples/docker",
"env": {
"DOCKER_HOST": "unix:///run/docker.sock"
}
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Logs: all (docker)",
"dependsOn": [
"Logs: librebooking (docker)",
"Logs: db (docker)",
"Logs: cron (docker)"
],
"presentation": {
"reveal": "always",
"panel": "dedicated"
},
"problemMatcher": []
},
{
"label": "Status: all (docker)",
"command": "docker compose --file docker-compose-local.yml ps app db cron",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/.examples/docker",
"env": {
"DOCKER_HOST": "unix:///run/docker.sock"
}
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
// Booting
{
"label": "Hard Restart: all (docker)",
"command": "docker compose --file docker-compose-local.yml down --remove-orphans && docker compose --file docker-compose-local.yml up -d ",
"options": {
"cwd": "${workspaceFolder}/.examples/docker",
"env": {
"DOCKER_HOST": "unix:///run/docker.sock"
}
},
"type": "shell"
},
{
"label": "Start: all (docker)",
"command": "docker compose --file docker-compose-local.yml up -d",
"options": {
"cwd": "${workspaceFolder}/.examples/docker",
"env": {
"DOCKER_HOST": "unix:///run/docker.sock"
}
},
"type": "shell"
},
{
"label": "Stop: all (docker)",
"command": "docker compose --file docker-compose-local.yml down --remove-orphans",
"options": {
"cwd": "${workspaceFolder}/.examples/docker",
"env": {
"DOCKER_HOST": "unix:///run/docker.sock"
}
},
"type": "shell"
}
]
}