opencode/compose.yaml aktualisiert
This commit is contained in:
1 parent
22fa040df2
commit
5b4cd35ca0
1 file changed
+4
-25
+4
-25
@@ -1,32 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
# --- 1. OPENID CONNECT (OIDC) SECURITY PROXY ---
|
# --- 1. MULTI-PROJECT OPENCODE SERVER ---
|
||||||
auth_proxy:
|
|
||||||
image: quay.io/oauth2-proxy/oauth2-proxy:latest
|
|
||||||
container_name: ${STACK_NAME:-opencode}_oidc_proxy
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "${HOST_PORT:-4180}:4180"
|
|
||||||
environment:
|
|
||||||
- OAUTH2_PROXY_HTTP_ADDRESS=0.0.0.0:4180
|
|
||||||
- OAUTH2_PROXY_REVERSE_PROXY=true
|
|
||||||
- OAUTH2_PROXY_REDIRECT_URL=https://${DOMAIN_NAME:?error_DOMAIN_NAME_is_required}/oauth2/callback
|
|
||||||
- OAUTH2_PROXY_EMAIL_DOMAINS=*
|
|
||||||
- OAUTH2_PROXY_UPSTREAM=http://app:4096
|
|
||||||
- OAUTH2_PROXY_PROVIDER=oidc
|
|
||||||
- OAUTH2_PROXY_CLIENT_ID=${OIDC_CLIENT_ID:?error_OIDC_CLIENT_ID_is_required}
|
|
||||||
- OAUTH2_PROXY_CLIENT_SECRET=${OIDC_CLIENT_SECRET:?error_OIDC_CLIENT_SECRET_is_required}
|
|
||||||
- OAUTH2_PROXY_OIDC_ISSUER_URL=${OIDC_ISSUER_URL:?error_OIDC_ISSUER_URL_is_required}
|
|
||||||
- OAUTH2_PROXY_COOKIE_SECRET=${OIDC_COOKIE_SECRET:?error_OIDC_COOKIE_SECRET_is_required}
|
|
||||||
- OAUTH2_PROXY_COOKIE_SECURE=${COOKIE_SECURE_HTTPS:-true}
|
|
||||||
- OAUTH2_PROXY_INSECURE_OIDC_ALLOW_UNVERIFIED_EMAIL=${OIDC_ALLOW_UNVERIFIED_EMAIL:-true}
|
|
||||||
depends_on:
|
|
||||||
- app
|
|
||||||
|
|
||||||
# --- 2. MULTI-PROJECT OPENCODE SERVER ---
|
|
||||||
app:
|
app:
|
||||||
image: ghcr.io/anomalyco/opencode:${APP_IMAGE_TAG:-latest}
|
image: ghcr.io/anomalyco/opencode:${APP_IMAGE_TAG:-latest}
|
||||||
container_name: ${STACK_NAME:-opencode}_server
|
container_name: ${STACK_NAME:-opencode}_server
|
||||||
restart: always
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "${HOST_PORT:-4096}:4096"
|
||||||
command: opencode serve --port 4096 --hostname 0.0.0.0
|
command: opencode serve --port 4096 --hostname 0.0.0.0
|
||||||
environment:
|
environment:
|
||||||
- GIT_USER_NAME=${GIT_USER_NAME:-OpenCode Agent}
|
- GIT_USER_NAME=${GIT_USER_NAME:-OpenCode Agent}
|
||||||
@@ -51,7 +30,7 @@ services:
|
|||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
# --- 3. DATABASE TIER ---
|
# --- 2. DATABASE TIER ---
|
||||||
db:
|
db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: ${STACK_NAME:-opencode}_db
|
container_name: ${STACK_NAME:-opencode}_db
|
||||||
|
|||||||
Reference in new issue
Block a user