-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
90 lines (85 loc) · 2.38 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
90 lines (85 loc) · 2.38 KB
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
83
84
85
86
87
88
89
90
version: '3.8'
services:
mysqldb:
image: mysql:oracle
restart: on-failure
healthcheck:
test: mysql zlifecycle --user=root --password='password' --silent --execute "SELECT 1;"
interval: 5s
timeout: 3s
retries: 2
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: zlifecycle
ports:
- "3306:3306"
volumes:
- cloudknit-db-config:/etc/mysql
- cloudknit-db-data:/var/lib/mysql
redis:
image: redis:7.0.7-alpine
restart: on-failure
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 5s
timeout: 3s
retries: 2
ports:
- "6379:6379"
api:
build:
context: ./api
dockerfile: ./Dockerfile.local
restart: on-failure
command: ['npm', 'run', 'start:debug']
env_file: .env.secrets.local
environment:
- IS_LOCAL=true
- CK_ENVIRONMENT=dev
- APP_PORT=3001
- TYPEORM_HOST=mysqldb
- TYPEORM_USERNAME=root
- TYPEORM_PASSWORD=password
- TYPEORM_PORT=3306
- TYPEORM_DATABASE=zlifecycle
- CK_REDIS_HOST=redis:6379
- CK_ARGO_WF_URL=http://localhost:2746
- CK_ARGO_WF_ORG_URL=http://argo-workflow-server.:org-executor.svc.cluster.local:2746
- CK_ARGO_WF_NAMESPACE=zlifecycle-executor
ports:
- "3001:3001"
volumes:
- type: bind
source: ./api
target: /app
depends_on:
- mysqldb
bff:
build:
context: ./bff
dockerfile: ./Dockerfile.local
restart: on-failure
env_file: .env.secrets.local
environment:
- PORT=8080
- NODE_ENV=development
- LOG_LEVEL=debug
- SITE_URL=http://localhost:3000
- ARGO_WORKFLOW_API_URL=http://argo-workflow-server.:org-executor.svc.cluster.local:2746
- ARGO_CD_API_URL=http://argocd-:org-server.:org-system.svc.cluster.local
- ZLIFECYCLE_API_URL=http://api:3001
- ZLIFECYCLE_STATE_MANAGER_URL=http://zlifecycle-state-manager.:org-system.svc.cluster.local:8080
- ZLIFECYCLE_EVENT_API_URL=http://event-service.:org-system.svc.cluster.local
- AUTH0_BASE_URL=http://localhost:8080
- AUTH0_ISSUER_BASE_URL=https://dev-04d2288z.us.auth0.com
ports:
- "8080:8080"
volumes:
- type: bind
source: ./bff
target: /app
depends_on:
- api
volumes:
cloudknit-db-config:
cloudknit-db-data: