Files
templates/blueprints/code-server/docker-compose.yml
Mauricio Siu 3523fc6a90 fix: remove nested .config volume that crash-looped code-server
The named volume mounted at /home/coder/.config was created root-owned
(the path does not exist in the codercom/code-server image), so
code-server running as uid 1000 failed with
"EACCES: permission denied, mkdir '/home/coder/.config/code-server'"
and restarted in a loop, leaving Traefik returning 404. The .config
directory already lives inside /home/coder, which is persisted by the
code-server-home volume, so the extra volume is unnecessary.

Verified: deploy done, container healthy, domain on port 8080 returns
HTTP 200 with the code-server login page.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 01:37:50 -06:00

18 lines
299 B
YAML

version: "3.8"
services:
code-server:
image: codercom/code-server:4.121.0
restart: unless-stopped
expose:
- 8080
volumes:
- code-server-home:/home/coder
environment:
- PASSWORD=${PASSWORD}
- TZ=${TZ}
user: "1000:1000"
volumes:
code-server-home: