Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to create a docker image for the live coding proxy instead of creating proxy in VSCode extension? #2

Open
jentzheng opened this issue May 3, 2023 · 1 comment

Comments

@jentzheng
Copy link

As some dev env is using VScode Devcontainer, creating an image and bind the target container's port would be a solution, besides it wont mess up the exist Dockerfile and docker-compose config. Here's my suggestion

version: "3"
services:
  app:
    build:
      context: .
      build: Dockerfile
    ports:
      - 3000:3000
    labels:
      ...weixinLabels


  wexinProxy:
    images: someimage
    ports:
      - 27082:80
    environments: []

@Cubelrti
Copy link
Contributor

Cubelrti commented May 5, 2023

Yes, it is possible to do that without extension completely. The VSCode extension Live Coding is just generating the yaml config and running a series of docker-compose command to rebuild and rerun those containers. You can manually write a config and run them with a terminal or docker official extension.

More detail about what the extension will do are available here.

Note that the networks will be required to be wxcb0 and the labels should be the same as generated config for the extension to detect if the containers are running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants