33 lines
No EOL
745 B
YAML
33 lines
No EOL
745 B
YAML
services:
|
|
code-server:
|
|
image: lscr.io/linuxserver/code-server:latest
|
|
container_name: code-server
|
|
restart: unless-stopped
|
|
dns:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Europe/Zurich
|
|
- PASSWORD=dasmussSafesein101
|
|
- SUDO_PASSWORD=Burrito737
|
|
- DEFAULT_WORKSPACE=/srv/workspace
|
|
- INSTALL_NODE=true
|
|
ports:
|
|
- "8443:8443"
|
|
volumes:
|
|
- /srv/data/code-server:/config
|
|
- /srv/workspace:/srv/workspace
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -f http://localhost:8443/ || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|
|
networks:
|
|
- dev-nw
|
|
|
|
networks:
|
|
dev-nw:
|
|
external: true |