version: "2.1"
services:
  code-server:
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - PASSWORD=password #optional
      # - HASHED_PASSWORD= #optional
      - SUDO_PASSWORD=password #optional
      # - SUDO_PASSWORD_HASH= #optional
      - PROXY_DOMAIN=code-server.wayl.one #optional
      - DEFAULT_WORKSPACE=/config/workspace #optional
    volumes:
      - code-server-data:/config
    labels:
      kompose.service.expose: code-server.wayl.one
    ports:
      - 8443
volumes:
  code-server-data:
