我有docker-compose文件,我正在尝试将其上传到AWS ECS。我在用ecs-cli上传。我运行ecs-cli compose up,一切正常,除了我不能为docker命名的卷定义host.sourcePath。我想在ecs-params.yml中执行此操作,但ECS documentation中没有有关它的信息
docker-compose.yml:
version: '3.0'
services:
nginx:
image: nginx
ports:
- 80:80
depends_on:
- php
volumes:
- app:/app
- nginx-config:/etc/nginx/conf.d
php:
image: ...
restart: always
working_dir: /app
volumes:
- app:/app
- php-config:/usr/local/etc/php/conf.d
volumes:
app:
nginx-config:
php-config:ecs-params.yml:
version: 1
task_definition:
services:
nginx:
cpu_shares: 256
mem_limit: 512MB
php:
cpu_shares: 768
mem_limit: 512MB发布于 2018-09-22 03:58:27
遇到与您相同的问题,在ecs-cli github问题中找到了答案:https://github.com/aws/amazon-ecs-cli/issues/318
https://stackoverflow.com/questions/52331548
复制相似问题