Add code-server/docker-compose.yml

This commit is contained in:
2023-08-22 07:42:55 -05:00
commit 84e98c534a

View File

@@ -0,0 +1,31 @@
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