mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-10 16:35:27 +02:00
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>
18 lines
299 B
YAML
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:
|