-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (62 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
63 lines (62 loc) · 1.58 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
# filename: docker-compose.dev.yml
# 启动方式:docker-compose -f docker-compose.yml up -d
# 停止方式:docker-compose -f docker-compose.yml down
version: '3'
services:
e5-frontend:
image: musicminion/e5-frontend:next
working_dir: /app
ports:
- "3000:80"
e5-backend:
image: musicminion/e5-backend:latest
ports:
- "8080:8080"
depends_on:
- mysql
- redis
- influxdb
- e5-frontend
env_file:
- ./config/backend/config.env
mysql:
image: mysql:8.0
restart: always
volumes:
- ./config/sql:/docker-entrypoint-initdb.d
- ./data/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: example_mysql_password
MYSQL_SSL_MODE: disabled
ports:
- "3306:3306"
redis:
image: redis:6.0.9
restart: always
volumes:
- ./data/redis:/data
ports:
- "6379:6379"
environment:
- REDIS_PASSWORD=example_redis_password
command: redis-server --appendonly yes
influxdb:
image: influxdb:2.0
restart: always
volumes:
- ./data/influxdb:/var/lib/influxdb2
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=example_influxdb_password
- DOCKER_INFLUXDB_INIT_ORG=E5
- DOCKER_INFLUXDB_INIT_BUCKET=e5
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=example_influxdb_token
- DOCKER_INFLUXDB_INIT_RETENTION=1w
command:
- influxd
- --reporting-disabled
- --http-bind-address=:8086
- --log-level=error