mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-02-21 15:17:22 +08:00
Add build context to master and slave yaml.
This commit is contained in:
parent
84f3fa716d
commit
f788a23aca
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user