如何将docker-compose.yml文件转换为Dockerrun.aws.json

时间:2018-08-09 18:08:40

标签: docker amazon-ec2 docker-compose

我有这个简单的docker-compose.yml文件:

version: '3'

services:
  web:
    build: .
    command: python3 manage.py runserver 0.0.0.0:8000
    volumes:
      - .:/code
    ports:
      - "8000:8000"

如何将其转换为Dockerrun.aws.json? 它不起作用:

    {
  "AWSEBDockerrunVersion": "2",
  "Image": {
    "Name": "akab/memweb",
    "Update": "true"
  },
  "Ports": [
    {
      "ContainerPort": "8000"
    }
  ],
  "Logging": "/var/log/nginx"
}

我知道此转换器https://github.com/micahhausler/container-transform,但不知道如何使用它。

0 个答案:

没有答案