-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
60 lines (53 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
version: "3.6"
services:
workflow:
image: 311462405659.dkr.ecr.eu-west-1.amazonaws.com/sirius/sirius-workflow:latest
build:
dockerfile: docker/sirius-workflow/Dockerfile
ports: ["8888:8888"]
environment:
PORT: 8888
SIRIUS_URL: http://json-server:3000
SIRIUS_PUBLIC_URL: http://localhost:8080
depends_on:
- json-server
json-server:
build:
dockerfile: docker/json-server/Dockerfile
ports:
- '3000:3000'
test-runner:
build:
dockerfile: docker/test-runner/Dockerfile
working_dir: /go/src/app
volumes:
- ./:/go/src/app
cypress:
build:
dockerfile: docker/cypress/Dockerfile
command: ["--headless", "-b", "electron", "--env", "grepUntagged=true"]
volumes:
- ./cypress/screenshots:/root/cypress/screenshots:rw,delegated
- ./cypress/logs:/root/cypress/logs:rw,delegated
depends_on:
- workflow
- json-server
go-lint:
image: golangci/golangci-lint:v1.62.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