1. Create empty /config folder and docker-compose.yaml file with following content:
services:
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- PASSWORD=T@mir4578 #optional
- HASHED_PASSWORD= #optional
- SUDO_PASSWORD=T@mir4578 #optional
- SUDO_PASSWORD_HASH= #optional
- PROXY_DOMAIN=code-server.my.domain #optional
- DEFAULT_WORKSPACE=/config/workspace #optional
volumes:
- /home/tamir/visualCode-server/vscode-server3/config:/config
ports:
- 8443:8443
restart: unless-stopped
2. Run following command:
sudo docker-compose up -d
3.
Comments
Post a Comment