-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker compose example and description to README
- Loading branch information
1 parent
ee1e146
commit 58ead82
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3.6' | ||
|
||
services: | ||
bazel-cache: | ||
container_name: bazel-remote-cache | ||
image: buchgr/bazel-remote-cache:latest | ||
restart: always | ||
ports: | ||
- 9090:8080 | ||
- 9092:9092 | ||
command: --max_size=1000 | ||
volumes: | ||
- /path/to/cache/dir:/data | ||
environment: | ||
BAZEL_REMOTE_GRPC_PORT: 9092 | ||
# setting data dir and the max_size has no effect here as they are predefined by command line args | ||
# use the "command" to overwrite it or build your own image with different default parameters | ||
# see https://stackoverflow.com/q/64341356/13543363 | ||
# BAZEL_REMOTE_DIR: /data | ||
# BAZEL_REMOTE_MAX_SIZE: 1000 |