You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
615 B
YAML
20 lines
615 B
YAML
version: '3'
|
|
services:
|
|
hadoop:
|
|
restart: always
|
|
image: hadoop:1.0.0
|
|
container_name: hadoop
|
|
volumes:
|
|
- ./appsettings.json:/app/appsettings.json
|
|
# - /apps/mysql/mydir:/mydir
|
|
# - /apps/mysql/datadir:/var/lib/mysql
|
|
# - /apps/mysql/conf/my.cnf:/etc/my.cnf
|
|
# # 数据库还原目录 可将需要还原的sql文件放在这里
|
|
# - /apps/mysql/source:/docker-entrypoint-initdb.d
|
|
environment:
|
|
- "TZ=Asia/Shanghai"
|
|
ports:
|
|
# 使用宿主机的3306端口映射到容器的3306端口
|
|
# 宿主机:容器
|
|
- 5000:8080
|
|
network_mode: bridge |