717 B
717 B
Code-Server (code-server) Docker Swarm stack
Deploy a lightweight web-accessible VS Code (code-server) on Docker Swarm.
Quick usage
- Edit
stack-code-server.ymlto set a securePASSWORD(or use Docker secrets). - Deploy the stack:
docker stack deploy -c stack-code-server.yml code-server
Access
- Open http://:8443 or https depending on the image configuration. Log in with the password set in the compose file.
Notes
- The service stores config in a named volume
code_server_dataand mounts./workspaceinto the container at/config/workspace. - For production, replace the
PASSWORDwith a Docker secret and consider putting the service behind a reverse proxy/traefik with TLS.