当前位置:   article > 正文

docker-compose.yml_docker-compose --privileged=true

docker-compose --privileged=true

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

  coinbank_es00:
    image: elasticsearch:7.13.2
    container_name: coinbank_es00
    restart: always
    ports:
      - 9200:9200
      - 9300:9300
    environment:
      - discovery.type=single-node
     

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/180636
推荐阅读
相关标签
  

闽ICP备14008679号