Closed antogno closed 10 months ago
These issues should be fixed now. Restarting the branch (CodeSandbox logo menu on top left > Restart branch) should pull the version with the fixes.
PORT
env variable is no longer needed. It was a bug and it is fixed now.env_file
property can be removed if the env variables that are used in docker-compose.yml
is configured in the environment variables in CodeSandbox.Error response from daemon: No such image: localhost/codesandbox/devcontainer:latest
was caused because of the image
property in the app
service. We have fixed the bug that was causing this issue with image
property in the docker compose config should work now.Can you restart the branch and confirm that if it works now?
After the update I had some problems with the mysql:8.1.0
image - switching to mysql:8.2.0
solved them and now everything works correctly. Thanks!
🐛 bug report
Preflight Checklist
Description of the problem
I'm trying to import antogno/pesapi in CodeSandbox but the Dev Container just doesn't start. I suppose it's because of the
dockerComposeFile
option which I've never seen used in any of the examples I found online.The
devcontainer.json
looks like this:And this is
docker-compose.yml
:If I try to import this repository and I choose to use its Dev Container configuration, it gives me these errors:
Setting the env variable
PORT
solves one of the two errors:Removing the
env_file
property fromdocker-compose.yml
solves the other one, but then:How has this issue affected you? What are you trying to accomplish?
It just seems to me that using the
dockerComposeFile
option is not yet supported. Am I wrong?To Reproduce
Import antogno/pesapi in CodeSandbox and choose the Use the current configuration option when configuring the microVM environment.
Your Environment