-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (39 loc) · 1.29 KB
/
docker-compose.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.8"
services:
docs:
build:
context: "./docs"
args: &buildargs
HTTP_PROXY: "${HTTP_PROXY}"
HTTPS_PROXY: "${HTTPS_PROXY}"
LANG_VERSION: "${GO_VERSION:?required}"
PROTOC_VERSION: "${PROTOC_VERSION:?required}"
cache_from:
- "mythrnr/protobuf-compiler:${PROTOC_VERSION}-docs"
image: "mythrnr/protobuf-compiler:${PROTOC_VERSION}-docs"
golang:
build:
context: "./golang"
args: *buildargs
cache_from:
- "mythrnr/protobuf-compiler:${PROTOC_VERSION}-golang-${GO_VERSION}"
image: "mythrnr/protobuf-compiler:${PROTOC_VERSION}-golang-${GO_VERSION}"
php:
build:
context: "./php"
args:
<<: *buildargs
LANG_VERSION: "${PHP_VERSION:?required}"
PECL_GRPC_VERSION: "${PECL_GRPC_VERSION:?required}"
cache_from:
- "mythrnr/protobuf-compiler:${PROTOC_VERSION}-php-${PHP_VERSION}"
image: "mythrnr/protobuf-compiler:${PROTOC_VERSION}-php-${PHP_VERSION}"
python:
build:
context: "./python"
args:
<<: *buildargs
LANG_VERSION: "${PYTHON_VERSION:?required}"
cache_from:
- "mythrnr/protobuf-compiler:${PROTOC_VERSION}-python-${PYTHON_VERSION}"
image: "mythrnr/protobuf-compiler:${PROTOC_VERSION}-python-${PYTHON_VERSION}"