version: "3.9" services: coder: container_name: coder # This MUST be stable for our documentation and other automations. image: ghcr.io/coder/coder:latest restart: unless-stopped ports: - "7080:7080" environment: CODER_PG_CONNECTION_URL: "postgresql://username:password@database/coder?sslmode=disable" CODER_HTTP_ADDRESS: "0.0.0.0:7080" # 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: "https://example.com" # 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 volumes: - /var/run/docker.sock:/var/run/docker.sock networks: nginx: aliases: - coder networks: nginx: external: true