简体   繁体   中英

Issues with xray as side container in AWS ECS with docker-compose

I'm trying to deploy XRAY as a sidecar-container of my main container in AWS ECS Fargate using docker-compose; but it creates 2 tasks (Service and Xray) instead of 1 task containing both, the service and the xray daemon.

I have done this in the past without issues using cfn but I cannot make it work with docker-compose.

This is my docker-compose file:

version: "3.9"

services:
  web: 
    image: link-to-private-repo/web
    ports: ["80:80"]
  xray:
    image: amazon/aws-xray-daemon
    ports:
    - 2000:2000/udp

Thanks.

This is not possible today with the current Docker Compose out of the box experience. This need is tracked in this GH issue . Please weigh in in the issue with your use case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM