cat docker-compose.yml
version: '2'
services:
# docker run -tid --name baota -p 80:80 -p 443:443 -p 8888:8888 -p 888:888
# --privileged=true --shm-size=1g
# --restart always
# -v ~/wwwroot:/www/wwwroot pch18/baota
coinbank_baota:
image: pch18/baota
container_name: coinbank_baota
restart: always
environment:
- privileged=true
- shm-size=1g
volumes:
- ./wwwroot:/www/wwwroot
ports:
- 80:80
- 443:443
- 8888:8888
- 888:888
networks:
coin_bank:
ipv4_address: 10.0.18.10文章来源:https://www.toymoban.com/news/detail-447464.html
coinbank_es00:
image: elasticsearch:7.13.2
container_name: coinbank_es00
restart: always
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
文章来源地址https://www.toymoban.com/news/detail-447464.html
到了这里,关于docker-compose.yml的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!