-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yaml
82 lines (75 loc) · 1.91 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.9"
services:
postgres:
image: postgres:15
command: [
"postgres",
## "-c", "log_statement=all",
## "-c", "log_destination=stderr",
]
environment:
POSTGRES_USER: myadmin
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: mydb
POSTGRES_INITDB_ARGS: "-A password"
ports:
- "5432:5432"
volumes: []
flow:
image: ${DIREKTIV_IMAGE}
command: ["/bin/direktiv", "server"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DIREKTIV_API_PORT=8181
- DIREKTIV_GRPC_PORT=6666
- DIREKTIV_DEBUG=true
- DIREKTIV_DB=host=postgres port=5432 user=myadmin dbname=mydb password=mypassword sslmode=disable
- DIREKTIV_SECRET_KEY=01234567890123456789012345678912
- DIREKTIV_DISABLE_SERVICES=true
- DIREKTIV_KNATIVE_NAMESPACE=direktiv-services-direktiv
- DIREKTIV_FUNCTIONS_TIMEOUT=7200
- DIREKTIV_LOG_JSON=console
ports:
# api port
- "8181:8181"
# grpc port
- "6666:6666"
depends_on:
- postgres
ui:
image: ${DIREKTIV_UI_IMAGE}
environment:
- UI_BACKEND=http://flow:8181/api/
- UI_PORT=8080
ports:
# api port
- "8080:8080"
depends_on:
- flow
e2e-api:
image: node:lts-alpine3.18
volumes:
- ./tests:/tests
environment:
- NODE_TLS_REJECT_UNAUTHORIZED=0
- DIREKTIV_HOST=http://flow:8181
command: npm --prefix /tests run jest -- ${JEST_PREFIX} --runInBand
depends_on:
- flow
e2e-playwright:
scale: 0
image: node:18
volumes:
- ./ui:/ui
environment:
- NODE_TLS_REJECT_UNAUTHORIZED=0
- PLAYWRIGHT_USE_VITE=FALSE
- PLAYWRIGHT_UI_BASE_URL=http://ui:8080
command: >
bash -c "cd ui
&& yarn
&& npx playwright install --with-deps chromium
&& yarn run e2e:headless-chromium-only"
depends_on:
- ui