Marc Cataford
92d8d3672d
* feat(bookstack): working example bookstack instance * build(taskfiles): add Taskfile to handle start+stop * fix: ensure that network exists without erroring * chore(git): ignore Task bin * docs: notes on volumes, task commands * build(taskfiles): add build command, centralized user-supplied env * refactor(taskfiles): split away internal tasks * refactor(taskfiles): move environment variables into shared env.yml
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: '3'
|
|
|
|
includes:
|
|
# This file should be supplied by the environment and is not committed.
|
|
global-env:
|
|
taskfile: ./env.yml
|
|
internal: true
|
|
internal:
|
|
taskfile: ./Taskfile.internal.yml
|
|
internal: true
|
|
|
|
output: prefixed
|
|
|
|
tasks:
|
|
build:
|
|
desc: "Builds images for one or more services. Include service names as a space-separated list."
|
|
cmds:
|
|
- for: { var: CLI_ARGS }
|
|
task: internal:build-images
|
|
vars:
|
|
SERVICE: "{{ .ITEM }}"
|
|
prefix: "build: {{ .CLI_ARGS }}"
|
|
dir: services
|
|
start:
|
|
desc: "Starts one or more services. Include service names as a space-separated list."
|
|
cmds:
|
|
- for: { var: CLI_ARGS }
|
|
task: internal:start-service
|
|
vars:
|
|
SERVICE: "{{ .ITEM }}"
|
|
prefix: "start: {{ .CLI_ARGS }}"
|
|
dir: services
|
|
stop:
|
|
desc: "Stops one or more services. Include service names as a space-separated list."
|
|
cmds:
|
|
- for: { var: CLI_ARGS }
|
|
task: internal:stop-service
|
|
vars:
|
|
SERVICE: "{{ .ITEM }}"
|
|
prefix: "stop: {{ .CLI_ARGS }}"
|
|
dir: services
|