-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
55 lines (51 loc) · 1.3 KB
/
docker-compose.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
volumes:
cache:
services:
# The build service is responsible for building,
# linting, and testing the code.
build:
container_name: "build"
image: "docker.io/janderland/fql-build:${DOCKER_TAG}"
platform: "linux/amd64"
build:
context: "./docker"
target: "builder"
platforms:
- "linux/amd64"
args: &build_args
FQL_VER: "${DOCKER_TAG}"
FDB_LIB_URL: "${FDB_LIB_URL}"
GO_URL: "${GO_URL}"
GOLANGCI_LINT_VER: "${GOLANGCI_LINT_VER}"
SHELLCHECK_URL: "${SHELLCHECK_URL}"
HADOLINT_URL: "${HADOLINT_URL}"
JQ_URL: "${JQ_URL}"
PANDOC_URL: "${PANDOC_URL}"
depends_on:
- "fdb"
working_dir: "/fql"
volumes:
- ".:/fql"
- "cache:/cache"
# The fql service allows us to build and test the
# fql Docker image.
fql:
container_name: "fql"
image: "docker.io/janderland/fql:${DOCKER_TAG}"
platform: "linux/amd64"
build:
context: "."
dockerfile: "./docker/Dockerfile"
platforms:
- "linux/amd64"
args: *build_args
depends_on:
- "fdb"
# The fdb service provides a single-node cluster
# for integration testing.
fdb:
container_name: "fdb"
image: "${FDB_DOCKER_IMAGE}"
platform: "linux/amd64"
ports:
- "4500:4500"