fix bind mount and add login

This commit is contained in:
Kevin Heyer 2025-03-18 03:54:32 +00:00
parent 65b41749de
commit d17da372b2
2 changed files with 6 additions and 4 deletions

View file

@ -2,4 +2,7 @@
CODESERVER_VERSION=latest
# Code-Server Domain
CODESERVER_DOMAIN=code.example.com
CODESERVER_DOMAIN=code.example.com
# Code-Server Login Password
CODESERVER_PASSWORD=secret_password

View file

@ -4,13 +4,12 @@ services:
container_name: code-server
environment:
- DOCKER_USER=$USER
user: '$(id -u):$(id -g)'
- PASSWORD=${CODESERVER_PASSWORD:?error}
tty: true
stdin_open: true
volumes:
- './data/project:/home/coder/project'
- './data/config:/home/coder/.config'
- './data/local:/home/coder/.local'
- './data/config:/config'
networks:
- traefik
labels: