Files
docker-infrastructure/code-server/docker-compose.yml

31 lines
806 B
YAML

version: "3.6"
networks:
traefik_proxy:
external: true
services:
code-server:
container_name: code-server
image: linuxserver/code-server:latest
stdin_open: true
tty: true
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- PROXY_DOMAIN=code-server.${DOMAINNAME}
- SUDO_PASSWORD=dJoH%6!r5g#uBF
# ports:
# - "8080:8080"
volumes:
- /docker/code-server:/config
- /:/hostfs
restart: unless-stopped
networks:
- traefik_proxy
labels:
- traefik.enable=true
- traefik.http.routers.code-server.tls=true
- traefik.http.routers.code-server.tls.certresolver=default
- traefik.http.routers.code-server.entrypoints=https
- traefik.http.routers.code-server.middlewares=chain-oauth@file