mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 07:15:09 +00:00
add justfile to start, stop and maintain containers
This commit is contained in:
parent
4e863726e4
commit
e7a77b6ebd
1 changed files with 40 additions and 0 deletions
40
Justfile
Normal file
40
Justfile
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Frappe Docker Commands
|
||||||
|
|
||||||
|
# Start stack and enter interactive mode in one command
|
||||||
|
dev: up shell
|
||||||
|
|
||||||
|
# Start the devcontainer stack
|
||||||
|
up:
|
||||||
|
docker compose -f .devcontainer/docker-compose.yml up -d
|
||||||
|
|
||||||
|
# Stop the devcontainer stack
|
||||||
|
stop:
|
||||||
|
docker compose -f .devcontainer/docker-compose.yml stop
|
||||||
|
|
||||||
|
# Stop and remove the devcontainer stack
|
||||||
|
down:
|
||||||
|
docker compose -f .devcontainer/docker-compose.yml down
|
||||||
|
|
||||||
|
# Enter the frappe container in interactive mode
|
||||||
|
shell:
|
||||||
|
docker compose -f .devcontainer/docker-compose.yml exec --user frappe --workdir /workspace/development frappe bash
|
||||||
|
|
||||||
|
# View logs from all devcontainer services
|
||||||
|
logs:
|
||||||
|
docker compose -f .devcontainer/docker-compose.yml logs -f
|
||||||
|
|
||||||
|
# Restart the devcontainer stack
|
||||||
|
restart: down up
|
||||||
|
|
||||||
|
# Clean up all development containers and volumes (careful!)
|
||||||
|
clean:
|
||||||
|
docker compose -f .devcontainer/docker-compose.yml down -v
|
||||||
|
|
||||||
|
# Start production environment
|
||||||
|
prod-up:
|
||||||
|
docker compose up -d
|
||||||
|
|
||||||
|
# Stop production environment
|
||||||
|
prod-down:
|
||||||
|
docker compose down
|
||||||
|
|
||||||
Loading…
Reference in a new issue