无法使用compose和ecs-cli在ecs容器上制作nginx和django
version: "2"
services:
flower:
command: ["flower", "--broker=redis://redis:6379/0", "--port=5555"]
environment:
- "VIRTUAL_HOST=example.com"
- "VIRTUAL_PORT=5555"
image: mher/flower
links:
- redis
mem_limit: 126m
cpu_shares: 126
nginx:
image: my_image/nginx:latest
mem_limit: 126m
cpu_shares: 126
ports:
- 5555:5555
- 8000:8000
- 80:8000
links:
- django
- flower
redis:
image: redis:latest
ports:
- 6379:6379
mem_limit: 126m
cpu_shares: 126
celery:
image: my_image:latest
command: bash -c "celery -A litoteca worker -l info"
mem_limit: 126m
cpu_shares: 126
links:
- redis
django:
command: bash -c "./server_run.sh"
environment:
- "VIRTUAL_HOST=example.com"
- "VIRTUAL_PORT=8000"
expose:
- "8000"
image: my_image:latest
cpu_shares: 512
mem_limit: 512m
links:
- redis
问题是:在我的本地计算机上,我使用暴露(Ok),但它不支持ecs-cli,当在ecs上启动容器时,该容器没有端口。我该怎么做?我需要链接nginx和django并使nginx到代理。