-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1.41 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
services:
mysql:
image: mariadb:10.6
container_name: de_mysql
restart: always
environment:
TZ: ${TZ:-Asia/Shanghai}
MARIADB_DATABASE: ${DB_NAME:-dataease}
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD:-nu4x599Wq7u0Bn8EABh3J91G}
volumes:
- ${VOLUME_DIR:-./data}/mariadb/data:/var/lib/mysql
healthcheck:
test: "mysql -h127.0.0.1 -uroot -p$$MARIADB_ROOT_PASSWORD -e 'SHOW DATABASES;'"
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
- net
core:
image: wojiushixiaobai/dataease:${VERSION:-latest}
container_name: de_core
restart: always
environment:
TZ: ${TZ:-Asia/Shanghai}
DB_HOST: ${DB_HOST:-mysql}
DB_PORT: ${DB_PORT:-3306}
DB_NAME: ${DB_NAME:-dataease}
DB_USER: ${DB_USER:-root}
DB_PASSWORD: ${DB_PASSWORD:-nu4x599Wq7u0Bn8EABh3J91G}
ports:
- ${HTTP_PORT:-8100}:8100
volumes:
- ${VOLUME_DIR:-./data}/core/data:/opt/dataease2.0/data
- ${VOLUME_DIR:-./data}/core/data/geo:/opt/dataease2.0/data/geo
- ${VOLUME_DIR:-./data}/core/logs:/opt/dataease2.0/logs
- ${VOLUME_DIR:-./data}/core/cache:/opt/dataease2.0/cache
healthcheck:
test: "check http://localhost:8100"
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
depends_on:
mysql:
condition: service_healthy
networks:
- net
networks:
net: