Skip to content

Commit bad1130

Browse files
committed
client-replica: docker config
1 parent 17e97ae commit bad1130

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/fs_tree_manager/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.25
2+
3+
WORKDIR /
4+
5+
COPY . .
6+
7+
RUN go build -o fs_tree_manager ./server.go
8+
9+
CMD ["./fs_tree_manager"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
services:
2+
fs_tree_manager:
3+
image: fs_tree_manager:latest
4+
volumes:
5+
- ./config.yaml:/config.yaml:ro
6+
extra_hosts:
7+
# Resolve host.docker.internal to the host's gateway IP, works on
8+
# linux/macos/windows.
9+
- "host.docker.internal:host-gateway"
10+
restart: on-failure
11+
mem_limit: 4g
12+
ports:
13+
- "50052:50052"

0 commit comments

Comments
 (0)