Last active
September 3, 2021 21:26
-
-
Save hchasens/b667fabc56d34cadd0afd52e216a9808 to your computer and use it in GitHub Desktop.
Docker Compose for code-server in "Link" mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker Compose for code-server in "Link" mode | |
# Link mode setups a proxy through cdr.co and doesn't require you to port forward while keeping TLS. | |
# Run once with `docker-compose up` and find the authentication link. | |
# Click on the link. Code-server will then give you a permanent link. Save that link. | |
# After authentication "ctl+c" out then run "docker start code-server". You're done! | |
# You will need to change the uid or the gid. | |
version: "3.3" | |
services: | |
code-server: | |
image: codercom/code-server | |
container_name: code-server | |
command: --link | |
hostname: code-server | |
user: 1001:1001 | |
# environmnet: | |
# - DOCKER_USER=$USER | |
volumes: | |
- ./home:/home/ | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment