【脚手架】一些极简的docker-compose起服务汇总

version: '2'
services:

  docker_redis:
    image: "redis:3.2"
    restart: always
    ports:
      - "6379:6379"
    container_name: docker_redis

  docker_postgres:
    image: "postgres"
    restart: always
    ports:
      - "5432:5432"
    environment:
      POSTGRES_PASSWORD: 123456
    container_name: docker_postgres

  docker_ssdb:
    image: "leobuskin/ssdb-docker"
    restart: always
    ports:
      - "8088:8888"
    container_name: docker_ssdb

 docker_mongo:
   image: "mongo:4.0.8"
   restart: always
   ports:
     - "23781:23781"
   container_name: docker_mongo

更新时间:2022-04-21 09:06:43

本文由 智慧煮粥 创作,如果您觉得本文不错,请随意赞赏
采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
原文链接:http://zz.zzhub.cn/archives/ji-jian-de-docker-compose-qi-fu-wu-hui-zong
最后更新:2022-04-21 09:06:43

评论

Your browser is out of date!

Update your browser to view this website correctly. Update my browser now

×