-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (54 loc) · 1.45 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.6"
services:
firm-deputy-hub:
image: 311462405659.dkr.ecr.eu-west-1.amazonaws.com/sirius/sirius-firm-deputy-hub:latest
build:
dockerfile: docker/sirius-firm-deputy-hub/Dockerfile
ports: ["8888:8888"]
environment:
PORT: 8888
SIRIUS_URL: http://json-server:3000
PREFIX: /supervision/deputies/firm
depends_on:
- json-server
json-server:
build:
dockerfile: docker/json-server/Dockerfile
ports:
- "3000:3000"
cypress:
build:
dockerfile: docker/cypress/Dockerfile
command: ["--headless", "-b", "chrome"]
volumes:
- ./cypress/screenshots:/root/cypress/screenshots:rw,delegated
- ./cypress/logs:/root/cypress/logs:rw,delegated
depends_on:
- firm-deputy-hub
- json-server
test-runner:
build:
context: docker/test-runner/
working_dir: /go/src/app
volumes:
- ./:/go/src/app
- ./.gocache:/go/pkg/mod
go-lint:
image: golangci/golangci-lint:v1.55.2
working_dir: /go/src/app
volumes:
- ./:/go/src/app
- ./.cache/golangci-lint/v1.53.3:/root/.cache
command: golangci-lint run -v --timeout 5m
trivy:
image: aquasec/trivy:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./.trivy-cache:/root/.cache
- ./test-results:/test-results
yarn:
image: node:20.2.0-alpine3.16
working_dir: /home/node/app
entrypoint: yarn
volumes:
- ./:/home/node/app