Closed marlonbernardes closed 4 years ago
No, each function needs to run in its own container. You can change which port it's exposed on though, so you could have one on 9001 and one on 9002.
Alright, thanks for getting back to me. I'm closing this issue!
I have the following directory structure:
lambda/foo.js
docker-compose.yml
Perfect, everything working so far. One thing to note is that when performing the curl, I can change the
foo
parameter to anything else and I'll still get the same output:So, now let's say I have one more lambda function:
lambda/bar.js
Is it possible to run a single docker container and invoke the corresponding lambda function based on the function name provided in the URL?
I've tried removing the
command: foo.handler
property from the docker-compose file, but when I do so I always seem to get the following error when trying to invoke the function: