From 781d7d319016bdec2e50e246602c3175fbc2c12a Mon Sep 17 00:00:00 2001 From: jakebowles99 Date: Tue, 12 Sep 2023 14:46:09 +0100 Subject: [PATCH 1/3] new compose --- docker-compose.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 9b41c5f47ae61..a97c1bc989a2b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,6 +1,7 @@ version: "3.9" +name: "coder" services: - coder: + server: # This MUST be stable for our documentation and # other automations. image: ghcr.io/coder/coder:${CODER_VERSION:-latest} @@ -17,10 +18,13 @@ services: # the docker socket, you can uncomment the following # lines and set the group ID to one that has write # permissions on the docker socket. - #group_add: - # - "998" # docker group on host + group_add: + - "998" # docker group on host volumes: - /var/run/docker.sock:/var/run/docker.sock + #- /home/j/.ssh/id_rsa:/home/coder/.ssh/id_rsa + #- /home/j/.ssh/id_rsa.pub:/home/coder/.ssh/id_rsa.pub + #- /home/j/homelab/coder/coder-templates:/home/coder/templates:Z depends_on: database: condition: service_healthy From 748dda9c8da561b8d47c64501ff4e1dc93178039 Mon Sep 17 00:00:00 2001 From: Jake Bowles Date: Tue, 12 Sep 2023 23:32:58 +0000 Subject: [PATCH 2/3] corrected compose --- docker-compose.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index a97c1bc989a2b..b8a68cc578418 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,6 @@ version: "3.9" -name: "coder" services: - server: + coder: # This MUST be stable for our documentation and # other automations. image: ghcr.io/coder/coder:${CODER_VERSION:-latest} @@ -13,13 +12,13 @@ services: # You'll need to set CODER_ACCESS_URL to an IP or domain # that workspaces can reach. This cannot be localhost # or 127.0.0.1 for non-Docker templates! - CODER_ACCESS_URL: "${CODER_ACCESS_URL}" + CODER_ACCESS_URL: "http://127.0.0.1:7080" # If the coder user does not have write permissions on # the docker socket, you can uncomment the following # lines and set the group ID to one that has write # permissions on the docker socket. group_add: - - "998" # docker group on host + - "1001" # docker group on host volumes: - /var/run/docker.sock:/var/run/docker.sock #- /home/j/.ssh/id_rsa:/home/coder/.ssh/id_rsa From c26472e59eb9f00ea353e56791a7efe99a458540 Mon Sep 17 00:00:00 2001 From: Jake Bowles Date: Wed, 13 Sep 2023 14:50:19 +0000 Subject: [PATCH 3/3] working --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b8a68cc578418..5684a20d5ad99 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -12,7 +12,7 @@ services: # You'll need to set CODER_ACCESS_URL to an IP or domain # that workspaces can reach. This cannot be localhost # or 127.0.0.1 for non-Docker templates! - CODER_ACCESS_URL: "http://127.0.0.1:7080" + CODER_ACCESS_URL: "http://j4ke.cloud:7080" # If the coder user does not have write permissions on # the docker socket, you can uncomment the following # lines and set the group ID to one that has write