Portainer Templates

Code Server

OtherTools

Code-server is VS Code running on a remote server, accessible through the browser.

Pulls: 67.7M
Stars: 728
User: linuxserver
Created: Jun 27, 2019
Updated: 4 days ago
Status: active
Type Container Platform linux Image linuxserver/code-server:latest Ports

8443:8443/tcp

Volumes

/config : /portainer/Files/AppData/Config/Code-Server

Restart Policy unless-stopped Env Vars

PUID=1000GUID=1000TZ=''PASSWORD=''SUDO_PASSWORD=''PROXY_DOMAIN=example.my.domain

Installation

Via Portainer

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select the app you wish to deploy, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo

Via Docker Run

docker run -d \ 
  -p 8443:8443/tcp \
  -e PUID=${PUID} \
  -e GUID=${GUID} \
  -e TZ=${TZ} \
  -e PASSWORD=${PASSWORD} \
  -e SUDO_PASSWORD=${SUDO_PASSWORD} \
  -e PROXY_DOMAIN=${PROXY_DOMAIN} \
  -v /portainer/Files/AppData/Config/Code-Server:/config \
  --restart=unless-stopped \
  linuxserver/code-server:latest

Via Docker Compose

Save this file as docker-compose.yml and run docker-compose up -d
Use this only as a guide.

version: '3.8'
services:
  code-server:
    image: linuxserver/code-server:latest
    ports:
      - 8443:8443:tcp
    environment:
      PUID: ''
      GUID: ''
      TZ: ''
      PASSWORD: ''
      SUDO_PASSWORD: ''
      PROXY_DOMAIN: ''
    volumes:
      - /portainer/Files/AppData/Config/Code-Server:/config

Alternative Methods

For more installation options, see the Documentation in the GitHub repo

Container Documentation