diff --git a/opencode/compose.yaml b/opencode/compose.yaml index 0c2603d..c30b680 100644 --- a/opencode/compose.yaml +++ b/opencode/compose.yaml @@ -5,6 +5,8 @@ services: restart: always ports: - "${HOST_PORT:-4096}:4096" + networks: + - docker_internal entrypoint: ["/bin/sh", "-c"] command: - | @@ -16,7 +18,7 @@ services: - XDG_DATA_HOME=/root/.local/share - XDG_STATE_HOME=/root/.local/state - XDG_CACHE_HOME=/root/.cache - - LOG_LEVEL=${LOG_LEVEL:-DEBUG} + - LOG_LEVEL=${LOG_LEVEL:-INFO} - OPENCODE_SERVER_PASSWORD=${OPENCODE_PASSWORD:?error_OPENCODE_PASSWORD_is_required} - OPENCODE_SERVER_USERNAME=${OPENCODE_USERNAME:-opencode} - GIT_AUTHOR_NAME=${GIT_USER_NAME:-OpenCode Agent} @@ -38,3 +40,8 @@ services: - /opt/docker/${STACK_NAME:-opencode}/data:/root/.local/share/opencode - /opt/docker/${STACK_NAME:-opencode}/state:/root/.local/state/opencode working_dir: /root/workspaces + +networks: + docker_internal: + name: docker_internal + external: true