diff --git a/code-server/.env-example b/code-server/.env-example index 044c289..a67b8c8 100644 --- a/code-server/.env-example +++ b/code-server/.env-example @@ -2,4 +2,7 @@ CODESERVER_VERSION=latest # Code-Server Domain -CODESERVER_DOMAIN=code.example.com \ No newline at end of file +CODESERVER_DOMAIN=code.example.com + +# Code-Server Login Password +CODESERVER_PASSWORD=secret_password \ No newline at end of file diff --git a/code-server/docker-compose.yml b/code-server/docker-compose.yml index 030ad57..3a4badc 100644 --- a/code-server/docker-compose.yml +++ b/code-server/docker-compose.yml @@ -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: