我有码头-复合. have:
web:
  build: ./app
  volumes:
    - "./app:/src/app"
  ports:
    - "3030:3000"
  links:
    - "db:redis"
  command: nodemon -L app/bin/www
db:
  image: redis我想把rethinkdb添加到docker-compose.yml中。我知道如何使用命令docker run -d -P --name rethink1 rethinkdb创建映像,但我不明白如何在docker-compose.yml中添加此服务
发布于 2017-04-19 10:52:38
只需添加它,就像添加其他服务一样。
web:
  build: ./app
  volumes:
    - "./app:/src/app"
  ports:
    - "3030:3000"
  links:
    - "db:redis"
  command: nodemon -L app/bin/www
db:
  image: redis
rethinkdb:
  image: rethinkdb
  container-name: rethink1https://stackoverflow.com/questions/43492622
复制相似问题