homelab/compose/services/code-server/compose.yaml
Eduardo Figueroa 2c60e54c80 refactor(services): Remove Tinyauth middleware from all services
Remove Tinyauth SSO middleware references from:
- FreshRSS, Backrest, Booklore, Code Server
- Homarr, Homepage, Karakeep, Komodo
- MicroBin, RSS Bridge, RSSHub, Static Sites

Services with local-only middleware now only use local-only restriction
(Backrest, Code Server) without Tinyauth.
2025-12-12 23:17:23 +00:00

42 lines
1.1 KiB
YAML

# code-server - VS Code in the browser with AI coding support
# Docs: https://github.com/coder/code-server
services:
code-server:
container_name: code-server
image: lscr.io/linuxserver/code-server:latest
restart: unless-stopped
env_file:
- .env
volumes:
- ./config:/config
# Mount your homelab directory for editing
- /home/eduardo_figueroa/homelab:/config/workspace/homelab
networks:
- homelab
labels:
# Traefik
traefik.enable: true
traefik.docker.network: homelab
# Web UI
traefik.http.routers.code-server.rule: Host(`code.fig.systems`)
traefik.http.routers.code-server.entrypoints: websecure
traefik.http.routers.code-server.tls.certresolver: letsencrypt
traefik.http.services.code-server.loadbalancer.server.port: 8443
# SSO Protection and restrict to local network
traefik.http.routers.code-server.middlewares: local-only
# Homarr Discovery
homarr.name: Code Server (IDE)
homarr.group: Services
homarr.icon: mdi:microsoft-visual-studio-code
networks:
homelab:
external: true