55 lines
2.0 KiB
YAML
55 lines
2.0 KiB
YAML
networks:
|
|
nginx-bridge:
|
|
external: true
|
|
services:
|
|
convex-backend:
|
|
image: ghcr.io/get-convex/convex-backend:08139ef318b1898dad7731910f49ba631631c902
|
|
container_name: ${BACKEND_CONTAINER_NAME:-convex-backend}
|
|
hostname: ${BACKEND_CONTAINER_NAME:-convex-backend}
|
|
domainname: convex.gbrown.org
|
|
#user: 1000:1000
|
|
networks: [nginx-bridge]
|
|
#ports: [3210:3210,3211:3211] # 3210: API | 3211: Base URL
|
|
volumes: [./data:/convex/data]
|
|
labels: ['com.centurylinklabs.watchtower.enable=true']
|
|
env_file: [.env]
|
|
environment:
|
|
- INSTANCE_NAME=${INSTANCE_NAME:-}
|
|
- INSTANCE_SECRET=${INSTANCE_SECRET:-}
|
|
- CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${PORT:-3210}}
|
|
- CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${SITE_PROXY_PORT:-3211}}
|
|
- DISABLE_BEACON=${DISABLE_BEACON:-}
|
|
- REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:-}
|
|
- DO_NOT_REQUIRE_SSL=${DO_NOT_REQUIRE_SSL:-}
|
|
#- DATABASE_URL=${DATABASE_URL:-}
|
|
stdin_open: true
|
|
tty: true
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: curl -f http://localhost:3210/version
|
|
interval: 5s
|
|
start_period: 10s
|
|
stop_grace_period: 10s
|
|
stop_signal: SIGINT
|
|
|
|
convex-dashboard:
|
|
image: ghcr.io/get-convex/convex-dashboard:33cef775a8a6228cbacee4a09ac2c4073d62ed13
|
|
container_name: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard}
|
|
hostname: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard}
|
|
domainname: dashboard.convex.gbrown.org
|
|
#user: 1000:1000
|
|
networks: [nginx-bridge]
|
|
stop_grace_period: 10s
|
|
stop_signal: SIGINT
|
|
ports: [6791:6791] # Dashboard
|
|
labels: ['com.centurylinklabs.watchtower.enable=true']
|
|
env_file: [.env]
|
|
environment:
|
|
- NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${PORT:-3210}}
|
|
depends_on:
|
|
convex-backend:
|
|
condition: service_healthy
|
|
stdin_open: true
|
|
tty: true
|
|
restart: unless-stopped
|