Add build context to master and slave yaml.

This commit is contained in:
FiveMovesAhead 2025-08-13 13:03:00 +01:00
parent 84f3fa716d
commit f788a23aca
2 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,8 @@
services:
db:
build:
context: .
dockerfile: postgres/Dockerfile
image: ghcr.io/tig-foundation/tig-monorepo/benchmarker/postgres:${VERSION}
container_name: db
restart: unless-stopped
@ -20,6 +23,9 @@ services:
retries: 5
master:
build:
context: .
dockerfile: master/Dockerfile
image: ghcr.io/tig-foundation/tig-monorepo/benchmarker/master:${VERSION}
environment:
- POSTGRES_USER=${POSTGRES_USER}
@ -38,6 +44,9 @@ services:
condition: service_healthy
ui:
build:
context: .
dockerfile: ui/Dockerfile
image: ghcr.io/tig-foundation/tig-monorepo/benchmarker/ui:${VERSION}
restart: unless-stopped
networks:
@ -48,6 +57,9 @@ services:
- master
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
image: ghcr.io/tig-foundation/tig-monorepo/benchmarker/nginx:${VERSION}
ports:
- "${UI_PORT}:80"

View File

@ -11,6 +11,9 @@ x-common-gpu: &common-gpu
services:
slave:
build:
context: .
dockerfile: slave/Dockerfile
image: ghcr.io/tig-foundation/tig-monorepo/benchmarker/slave:${VERSION}
volumes:
- /var/run/docker.sock:/var/run/docker.sock