From 6125d7f16f12804cbc5a7915ae34ec1740648512 Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Fri, 21 Nov 2025 18:53:23 -0500 Subject: [PATCH] Add docker-compose configuration for code-server service --- code-server/docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 code-server/docker-compose.yml diff --git a/code-server/docker-compose.yml b/code-server/docker-compose.yml new file mode 100644 index 0000000..2eb5235 --- /dev/null +++ b/code-server/docker-compose.yml @@ -0,0 +1,32 @@ +--- +version: "2.1" +services: + code-server: + image: lscr.io/linuxserver/code-server:latest + container_name: code-server + environment: + - PUID=1000 + - PGID=1006 + - TZ=Etc/UTC + # - PASSWORD=ChangeMe123 #optional + # - HASHED_PASSWORD= #optional + # - SUDO_PASSWORD=ChangeMe123!@ #optional + # - SUDO_PASSWORD_HASH= #optional + - PROXY_DOMAIN=code-server.example.com #optional + - DEFAULT_WORKSPACE=/config/workspace #optional + volumes: + - /docker-containers/code-server/config:/config + - /Documents/prodigy:/media/prodigy + ports: + - 8443:8443 + restart: unless-stopped + stdin_open: true # to attach to containers + tty: true # also used to attach to containers +# network_mode: service:wireguard # To run through vpn service container, in turn UI port must be forwarded inside vpn. No local access unless otherwise defined + networks: # Specify network for container + - homelab +networks: # I don't know why but you have to specify the network 2x. In service, and in this tag area.. + + homelab: +# name: homelab # Networks can also be given a custom name, not needed if existing + external: true # This option causes compose to join the above network instead of making a _default one (supposedly) \ No newline at end of file