-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.deploy.yml
More file actions
27 lines (26 loc) · 1.02 KB
/
Copy pathdocker-compose.deploy.yml
File metadata and controls
27 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# docker-compose.deploy.yml — overlay for prebuilt-binary deploys.
#
# Applied on top of docker-compose.yml via:
#
# docker compose -f docker-compose.yml -f docker-compose.deploy.yml up -d
#
# Overrides the `arbitrage-bot` service's build stanza to use the
# runtime-only Dockerfile, which assumes the binary is already
# present at ./arbitrage-bot in the build context. The deploy script
# stages the binary there before running compose.
#
# All other service definitions (postgres, volumes, networks) are
# inherited unchanged from docker-compose.yml.
services:
arbitrage-bot:
build:
context: .
dockerfile: Dockerfile.runtime
# GIT_SHA is written into /app/BUILD_INFO so deploy-prebuilt.sh can
# fingerprint-verify the running container (parity with the cargo-chef
# path). The deploy script exports GIT_SHA before invoking compose.
args:
GIT_SHA: ${GIT_SHA:-unknown}
# Pin the image name so `docker image prune` doesn't nuke it
# between deploys.
image: arbitrage-bot:prebuilt