forked from archguard/archguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (67 loc) · 1.68 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
version: '3.8'
services:
archguard-frontend:
image: "archguard/archguard-frontend:latest"
container_name: archguard-frontend
depends_on:
- archguard-backend
ports:
- "11080:80"
networks:
- dependence_network
archguard-backend:
image: "archguard/archguard-backend:latest"
container_name: archguard-backend
depends_on:
archguard_mysql:
condition: service_healthy
environment:
app_env: debug
volumes:
- "~/.m2:/root/.m2"
- "~/.gradle:/root/.gradle"
healthcheck:
test: curl -f http://localhost:8080/api/actuator/health || exit 1
timeout: 10s
retries: 5
networks:
- dependence_network
restart: on-failure:10
archguard_mysql:
image: "mysql:8"
container_name: archguard_mysql
command: --default-authentication-plugin=mysql_native_password
ports:
- "13306:3306"
environment:
MYSQL_ROOT_PASSWORD: prisma
MYSQL_DATABASE: archguard
TZ: Asia/Shanghai
networks:
- dependence_network
volumes:
- ./archguard_mysql:/var/lib/mysql:rw
user: mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 10s
retries: 5
archguard_influxdb:
image: "influxdb:1.8"
container_name: archguard_influxdb
ports:
- '8086:8086'
networks:
- dependence_network
healthcheck:
test: curl -f http://localhost:8086/ping || exit 1
timeout: 10s
retries: 5
volumes:
- ./archguard_influxdb:/var/lib/influxdb
environment:
- INFLUXDB_DB=db0
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=admin
networks:
dependence_network: