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

时间:2018-12-23 10:57:50

标签: amazon-web-services docker docker-compose

在记下Dockerrun.aws.json文件时遇到问题。我的docker-compose文件运行正常。 所以,请您帮我把docker-compose.yml转换成Dockerrun.aws.json文件。

这是我的docker compose文件。

# This section contains your application metadata.
# Version of the application
version: 0.1.0
# Name of the application
name: hello-world
# A short description of the application
description: "Hello, World!"
# Namespace to use when pushing to a registry. This is typically your Hub username.
namespace: myHubUsername
# List of application maintainers with name and email for each
maintainers:
  - name: user
    email: "user@email.com"

---
# This section contains the Compose file that describes your application services.
version: "3.6"
services:
  hello:
    image: hashicorp/http-echo
    command: ["-text", "${text}"]
    ports:
      - ${port}:5678

---
# This section contains the default values for your application settings.
port: 8080
text: Hello, World!`enter code here`

0 个答案:

没有答案