Skip to content

Instantly share code, notes, and snippets.

@SeanJA
Created April 19, 2024 03:20
Show Gist options
  • Save SeanJA/37e300f3ddd85b55935bafc92750dc45 to your computer and use it in GitHub Desktop.
Save SeanJA/37e300f3ddd85b55935bafc92750dc45 to your computer and use it in GitHub Desktop.
TaskFiles
version: '3'
tasks:
up:
desc: "Start up all of the containers"
aliases: [u, start]
cmds:
- cmd: docker-compose up -d
stop:
desc: "Stop all of the containers"
aliases: [d, down, halt]
cmds:
- cmd: docker-compose stop
restart:
desc: "Restart all of the containers"
aliases: [reboot]
cmds:
- cmd: docker-compose restart
rebuild:
desc: "Rebuild all of the docker containers"
aliases: [recreate]
cmds:
- cmd: docker-compose up --build --force-recreate --remove-orphans --no-deps --no-cache -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment