If there are uncommitted changes in the app repository when building, then append `_uncommitted_<random>` to it to distinguish the image from one built from a clean checkout. Also change the version used when renaming a container on redeploy to distinguish and explain the version suffixes.
20 lines
320 B
YAML
20 lines
320 B
YAML
service: app
|
|
image: app
|
|
servers:
|
|
- vm1
|
|
- vm2
|
|
registry:
|
|
server: registry:4443
|
|
username: root
|
|
password: root
|
|
builder:
|
|
multiarch: false
|
|
args:
|
|
COMMIT_SHA: <%= `git rev-parse HEAD` %>
|
|
healthcheck:
|
|
cmd: wget -qO- http://localhost > /dev/null
|
|
traefik:
|
|
args:
|
|
accesslog: true
|
|
accesslog.format: json
|