-
Notifications
You must be signed in to change notification settings - Fork 48
/
docker-compose.yml
46 lines (38 loc) · 1.03 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
version: '3'
services:
bili-db:
image: mysql:5.7
container_name: bili-db
environment:
MYSQL_ROOT_PASSWORD: luckybililuckybili
MYSQL_DATABASE: luckybili
MYSQL_USER: luckybili
MYSQL_PASSWORD: luckybililuckybili
ports:
- "3206:3306"
volumes:
- ./lib/init_db_script.sql:/docker-entrypoint-initdb.d/init_db_script.sql # 挂载init_db_script.sql文件到容器内的初始化目录
- ./db_data:/var/lib/mysql # 持久化MySQL数据
command: --default-authentication-plugin=mysql_native_password
bili-selenium:
image: selenium/standalone-chrome:latest
container_name: bili-selenium
ports:
- 5555:4444
- 7900:7900
shm_size: 1g
environment:
- SE_NODE_MAX_SESSIONS=5
- SE_NODE_MAX_INSTANCES=5
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
# 执行转发动态的服务
dynamic_share:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
restart: always
depends_on:
- bili-selenium
- bili-db