I am having a problem with my docker compose file: This is my docker compose file:
version: '3'
services:
nginx-proxy:
image: xxxxx.dkr.ecr.xxxxx.amazonaws.com/xxxx:latest
container_name: "nginx-proxy"
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
...
This is the following error:
ClientException: host.sourcePath should not be set for volumes in Fargate
My task Definition:
"mountPoints": [],
...
"volumes": [],
...
"readonlyRootFilesystem": false,
I also want my volume to be "read only".
Does anyone know which variable name I need to use on my docker composer file?
Can someone help me?
Thanks