Skip to content

Commit 69ce659

Browse files
author
Ubuntu
committed
DockerCompose Coder
1 parent ca8b960 commit 69ce659

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

docker-compose.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
version: "3.9"
22
services:
33
coder:
4-
# This MUST be stable for our documentation and
5-
# other automations.
64
image: ghcr.io/coder/coder:${CODER_VERSION:-latest}
75
ports:
86
- "7080:7080"
97
environment:
108
CODER_PG_CONNECTION_URL: "postgresql://${POSTGRES_USER:-username}:${POSTGRES_PASSWORD:-password}@database/${POSTGRES_DB:-coder}?sslmode=disable"
119
CODER_ADDRESS: "0.0.0.0:7080"
12-
# You'll need to set CODER_ACCESS_URL to an IP or domain
13-
# that workspaces can reach. This cannot be localhost
14-
# or 127.0.0.1 for non-Docker templates!
15-
CODER_ACCESS_URL: "${CODER_ACCESS_URL}"
16-
# If the coder user does not have write permissions on
17-
# the docker socket, you can uncomment the following
18-
# lines and set the group ID to one that has write
19-
# permissions on the docker socket.
20-
#group_add:
21-
# - "998" # docker group on host
10+
CODER_ACCESS_URL: "http://localhost:7080"
2211
volumes:
2312
- /var/run/docker.sock:/var/run/docker.sock
2413
depends_on:
2514
database:
2615
condition: service_healthy
16+
2717
database:
2818
image: "postgres:14.2"
2919
ports:

0 commit comments

Comments
 (0)