-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
147 lines (138 loc) · 3.76 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
services:
opendora:
profiles:
- test
build:
context: ./
dockerfile: docker/devlake-go/Dockerfile
args:
USER_ID: ${USER_ID-1000}
GROUP_ID: ${GROUP_ID-1000}
restart: unless-stopped
ports:
- "10666:10666"
environment:
BACKSTAGE_URL: ${BACKSTAGE_URL-http://backstage:7007/}
DEVLAKE_URL: ${DEVLAKE_URL-http://config-ui:4000/}
DEVLAKE_DBUSER: ${DEVLAKE_DBUSER-merico}
DEVLAKE_DBPASS: ${DEVLAKE_DBPASS-merico}
DEVLAKE_DBADDRESS: ${DEVLAKE_DBADDRESS-mysql:3306}
DEVLAKE_DBNAME: ${DEVLAKE_DBNAME-lake}
extra_hosts:
- "host.docker.internal:host-gateway"
dora-api-mock:
profiles:
- dev
build:
context: ./
dockerfile: docker/dora-api-mock/Dockerfile
target: dev
args:
USER_ID: ${USER_ID-1000}
GROUP_ID: ${GROUP_ID-1000}
restart: unless-stopped
ports:
- "10666:10666"
backstage-plugin:
build:
context: ./
dockerfile: docker/backstage/Dockerfile
target: dev
args:
USER_ID: ${USER_ID-1000}
GROUP_ID: ${GROUP_ID-1000}
restart: unless-stopped
network_mode: host
environment:
POSTGRES_HOST: ${POSTGRES_HOST-postgres}
POSTGRES_PORT: ${POSTGRES_PORT-5432}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD-pass}
POSTGRES_USER: ${POSTGRES_USER-postgres}
POSTGRES_DB: ${POSTGRES_DB-backstage}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./backstage-plugin:/app/backstage-plugin
postgres:
image: postgres:16
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD-pass}
POSTGRES_USER: ${POSTGRES_USER-postgres}
POSTGRES_DB: ${POSTGRES_DB-backstage}
volumes:
- postgres-storage:/var/lib/postgresql/data
mysql:
image: mysql:8
profiles:
- test
- dashboard
volumes:
- mysql-storage:/var/lib/mysql
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: ${DEVLAKE_DBNAME-lake}
MYSQL_USER: ${DEVLAKE_MYSQL_USER:-merico}
MYSQL_PASSWORD: ${DEVLAKE_MYSQL_PASSWORD:-merico}
command: --character-set-server=utf8mb4
--collation-server=utf8mb4_bin
--skip-log-bin
grafana:
profiles:
- dashboard
image: devlake.docker.scarf.sh/apache/devlake-dashboard:v0.18.0
ports:
- "3002:3000"
volumes:
- grafana-storage:/var/lib/grafana
environment:
GF_SERVER_ROOT_URL: http://localhost:4000/grafana
GF_USERS_DEFAULT_THEME: dark
MYSQL_URL: ${DEVLAKE_DBADDRESS-mysql:3306}
MYSQL_DATABASE: ${DEVLAKE_DBNAME-lake}
MYSQL_USER: ${DEVLAKE_MYSQL_USER:-merico}
MYSQL_PASSWORD: ${DEVLAKE_MYSQL_PASSWORD:-merico}
restart: unless-stopped
depends_on:
- mysql
devlake:
profiles:
- test
- dashboard
image: devlake.docker.scarf.sh/apache/devlake:v0.18.0
ports:
- "8080:8080"
restart: unless-stopped
volumes:
- ./.env:/app/.env:z
- ./logs:/app/logs
environment:
DB_URL: ${DEVLAKE_MYSQL_CONNECTION_URL:-mysql://merico:merico@mysql:3306/lake?charset=utf8mb4&parseTime=True}
ENCRYPTION_SECRET: ${DEVLAKE_ENCRYPTION_SECRET:-}
depends_on:
- mysql
config-ui:
profiles:
- test
- dashboard
image: devlake.docker.scarf.sh/apache/devlake-config-ui:v0.18.0
ports:
- "4000:4000"
restart: unless-stopped
env_file:
- ./.env
environment:
DEVLAKE_ENDPOINT: devlake:8080
GRAFANA_ENDPOINT: grafana:3000
ADMIN_USER: ${DEVLAKE_ADMIN_USER:-devlake}
ADMIN_PASS: ${DEVLAKE_ADMIN_PASSWORD:-merico}
depends_on:
- devlake
volumes:
mysql-storage:
postgres-storage:
grafana-storage: