31 lines
648 B
YAML
31 lines
648 B
YAML
version: 3
|
|
tasks:
|
|
|
|
db-up:
|
|
desc: start ws-chat postgres and dbgate
|
|
cmds:
|
|
- echo "Postgres - localhost 54545 || DBGate localhost 7777"
|
|
- podman compose up -d
|
|
|
|
db-down:
|
|
desc: stop ws-chat postgres and dbgate
|
|
cmds:
|
|
- podman compose down
|
|
|
|
db-logs:
|
|
desc: view ws-chat postgres and dbgate logs
|
|
cmds:
|
|
- podman compose logs -f
|
|
|
|
db-status:
|
|
desc: show ws-chat postgres and dbgate status
|
|
cmds:
|
|
- podman compose ps
|
|
|
|
db-reset:
|
|
desc: delete the database data
|
|
cmds:
|
|
- podman compose down
|
|
- podman volume rm postgres-data-wschat
|
|
- podman volume rm dbgate-data-wschat
|