app-store/apps/code-server/docker-compose.yml

46 lines
1.9 KiB
YAML
Raw Normal View History

2022-07-28 17:46:12 +00:00
version: "3.7"
services:
code-server:
image: lscr.io/linuxserver/code-server:4.90.3
2022-07-28 17:46:12 +00:00
container_name: code-server
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- PASSWORD=${CODESERVER_PASSWORD}
- SUDO_PASSWORD=${CODESERVER_SUDO_PASSWORD}
- DEFAULT_WORKSPACE=/config/workspace
2022-07-28 17:46:12 +00:00
volumes:
- ${APP_DATA_DIR}/data/config:/config
2022-07-28 17:46:12 +00:00
- ${APP_DATA_DIR}/data/projects:/projects
ports:
- ${APP_PORT}:8443
restart: unless-stopped
networks:
- tipi_main_network
2022-11-11 19:33:58 +00:00
labels:
local domain configs A-G (#676) * feat(actual-budget): change config to support local domain * feat(adguard): change config to support local domain * feat(autobrr): change config to support local domain * feat(barrage): change config to support local domain * feat(bazarr): change config to support local domain * feat(booksonic): change config to support local domain * feat(bookstack): change config to support local domain * feat(calibre-web): change config to support local domain * feat(chatgpt-ui): change config to support local domain * feat(chatpad): change config to support local domain * feat(code-server): change config to support local domain * feat(codex-docs): change config to support local domain * feat(dailytxt): change config to support local domain * feat(dashdot): change config to support local domain * feat(deemix): change config to support local domain * feat(deluge): change config to support local domain * feat(dokuwiki): change config to support local domain * feat(dozzle): change config to support local domain * feat(duplicati): change config to support local domain * feat(emulatorjs): change config to support local domain * feat(excalidraw): change config to support local domain * feat(filebrowser): change config to support local domain * feat(filestash): change config to support local domain * feat(firefly-iii): change config to support local domain * feat(fireshare): change config to support local domain * feat(flatnotes): change config to support local domain * feat(freshrss): change config to support local domain * feat(ghost): change config to support local domain * feat(gitea): change config to support local domain * feat(gotify): change config to support local domain * feat(gotosocial): change config to support local domain * feat(grafana): change config to support local domain * feat(grav): change config to support local domain * feat(grocy): change config to support local domain
2023-06-10 14:46:05 +00:00
# Main
traefik.enable: true
traefik.http.middlewares.code-server-web-redirect.redirectscheme.scheme: https
traefik.http.services.code-server.loadbalancer.server.port: 8443
# Web
traefik.http.routers.code-server-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.code-server-insecure.entrypoints: web
traefik.http.routers.code-server-insecure.service: code-server
traefik.http.routers.code-server-insecure.middlewares: code-server-web-redirect
# Websecure
2022-11-11 19:33:58 +00:00
traefik.http.routers.code-server.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.code-server.entrypoints: websecure
traefik.http.routers.code-server.service: code-server
traefik.http.routers.code-server.tls.certresolver: myresolver
local domain configs A-G (#676) * feat(actual-budget): change config to support local domain * feat(adguard): change config to support local domain * feat(autobrr): change config to support local domain * feat(barrage): change config to support local domain * feat(bazarr): change config to support local domain * feat(booksonic): change config to support local domain * feat(bookstack): change config to support local domain * feat(calibre-web): change config to support local domain * feat(chatgpt-ui): change config to support local domain * feat(chatpad): change config to support local domain * feat(code-server): change config to support local domain * feat(codex-docs): change config to support local domain * feat(dailytxt): change config to support local domain * feat(dashdot): change config to support local domain * feat(deemix): change config to support local domain * feat(deluge): change config to support local domain * feat(dokuwiki): change config to support local domain * feat(dozzle): change config to support local domain * feat(duplicati): change config to support local domain * feat(emulatorjs): change config to support local domain * feat(excalidraw): change config to support local domain * feat(filebrowser): change config to support local domain * feat(filestash): change config to support local domain * feat(firefly-iii): change config to support local domain * feat(fireshare): change config to support local domain * feat(flatnotes): change config to support local domain * feat(freshrss): change config to support local domain * feat(ghost): change config to support local domain * feat(gitea): change config to support local domain * feat(gotify): change config to support local domain * feat(gotosocial): change config to support local domain * feat(grafana): change config to support local domain * feat(grav): change config to support local domain * feat(grocy): change config to support local domain
2023-06-10 14:46:05 +00:00
# Local domain
traefik.http.routers.code-server-local-insecure.rule: Host(`code-server.${LOCAL_DOMAIN}`)
traefik.http.routers.code-server-local-insecure.entrypoints: web
traefik.http.routers.code-server-local-insecure.service: code-server
traefik.http.routers.code-server-local-insecure.middlewares: code-server-web-redirect
# Local domain secure
traefik.http.routers.code-server-local.rule: Host(`code-server.${LOCAL_DOMAIN}`)
traefik.http.routers.code-server-local.entrypoints: websecure
traefik.http.routers.code-server-local.service: code-server
traefik.http.routers.code-server-local.tls: true