Skip to content

code-servercode-server

Containers

code-server

code-server.yml

Primary docker compose file for code-server

version: "3.9"
networks:
  default:
    external: false

services:
  code-server:
    extends:
      file: ../../common-services.yml
      service: image_base_no_init
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    hostname: code-server
    networks:
      - default
    environment:
      - SUDO_PASSWORD=${CODESERVER_SUDO_PASSWORD}
      - DEFAULT_WORKSPACE=/config/workspace
    volumes:
      - ./data/code-server/config:/config
    ports:
      - ${CODESERVER_PORT}:8443
View Source: /environments/example/coding/code-server.yml

code-server.env

Primary environment file for code-server

CODESERVER_PORT=8443
View Source: /environments/example/coding/code-server.env

code-server.secrets

Primary secrets file for code-server

CODESERVER_SUDO_PASSWORD=
View Source: /environments/example/coding/code-server.secrets.example