N
N
Ninja Mate2018-02-15 19:52:29
Amazon Web Services
Ninja Mate, 2018-02-15 19:52:29

How to copy volume to allotted ecs docker compose folder?

I need to redo the docker-compose.yml for amazon ecs
there is this line With ./frontend/certs/.:/etc/nginx/certs
this command we copy the certificates
and config

./frontend/frontend.nginx.site:/etc/nginx/conf.d/default.conf

Now when I try to ecs up I get an error
expected format [HOST:]CONTAINER[:ro|rw]. could not parse volume:

How to record volumes according to this format
nginx-frontend:
    image: nginx
    volumes:
      - frontend:/frontend.nginx.site:/etc/nginx/conf.d/default.conf
      - frontend:/certs/.:/etc/nginx/certs
... 
volumes:
  nginx-frontend: {}
  frontend: {}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question