feat(*): init
This commit is contained in:
141
docker-compose.yml
Normal file
141
docker-compose.yml
Normal file
@@ -0,0 +1,141 @@
|
||||
services:
|
||||
convex:
|
||||
image: ghcr.io/get-convex/convex-backend:latest
|
||||
stop_grace_period: 10s
|
||||
stop_signal: SIGINT
|
||||
volumes:
|
||||
- database:/convex/data
|
||||
environment:
|
||||
- ACTIONS_USER_TIMEOUT_SECS
|
||||
- AWS_ACCESS_KEY_ID
|
||||
- AWS_REGION
|
||||
- AWS_S3_DISABLE_CHECKSUMS
|
||||
- AWS_S3_DISABLE_SSE
|
||||
- AWS_S3_FORCE_PATH_STYLE
|
||||
- AWS_SECRET_ACCESS_KEY
|
||||
- AWS_SESSION_TOKEN
|
||||
- CONVEX_CLOUD_ORIGIN=${PUBLIC_CONVEX_URL}
|
||||
- CONVEX_RELEASE_VERSION_DEV
|
||||
- CONVEX_SITE_ORIGIN=${PUBLIC_CONVEX_SITE_URL}
|
||||
- DATABASE_URL
|
||||
- DISABLE_BEACON
|
||||
- DOCUMENT_RETENTION_DELAY=${DOCUMENT_RETENTION_DELAY:-172800}
|
||||
- DO_NOT_REQUIRE_SSL
|
||||
- HTTP_SERVER_TIMEOUT_SECONDS
|
||||
- INSTANCE_NAME=${CONVEX_INSTANCE_NAME}
|
||||
- INSTANCE_SECRET=${CONVEX_INSTANCE_SECRET}
|
||||
- MYSQL_URL
|
||||
- POSTGRES_URL
|
||||
- REDACT_LOGS_TO_CLIENT
|
||||
- RUST_BACKTRACE
|
||||
- RUST_LOG=${RUST_LOG:-info}
|
||||
- S3_ENDPOINT_URL
|
||||
- S3_STORAGE_EXPORTS_BUCKET
|
||||
- S3_STORAGE_FILES_BUCKET
|
||||
- S3_STORAGE_MODULES_BUCKET
|
||||
- S3_STORAGE_SEARCH_BUCKET
|
||||
- S3_STORAGE_SNAPSHOT_IMPORTS_BUCKET
|
||||
healthcheck:
|
||||
test: curl -f http://localhost:3210/version
|
||||
interval: 5s
|
||||
start_period: 10s
|
||||
profiles:
|
||||
- convex
|
||||
- external
|
||||
networks:
|
||||
database:
|
||||
aliases:
|
||||
- convex
|
||||
|
||||
bot:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
image: stealth-ai-relay/backend
|
||||
volumes:
|
||||
- ./backend/src:/app/src
|
||||
env_file:
|
||||
- "backend/.env"
|
||||
- ".env"
|
||||
profiles:
|
||||
- bot
|
||||
- services
|
||||
command:
|
||||
- "bot"
|
||||
networks:
|
||||
database:
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
image: stealth-ai-relay/frontend
|
||||
profiles:
|
||||
- frontend
|
||||
- services
|
||||
working_dir: /app/build
|
||||
env_file:
|
||||
- "frontend/.env"
|
||||
- ".env"
|
||||
command: "--bun run index.js"
|
||||
networks:
|
||||
database:
|
||||
|
||||
frontend-dev:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
image: stealth-ai-relay/frontend
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
- /app/.svelte-kit
|
||||
profiles:
|
||||
- frontend-dev
|
||||
env_file:
|
||||
- "frontend/.env"
|
||||
- ".env"
|
||||
entrypoint: sh
|
||||
command: -c "bun i && bunx concurrently 'bun --bun run dev --host 0.0.0.0 --port 3000' 'bunx convex dev'"
|
||||
networks:
|
||||
database:
|
||||
|
||||
script-runner:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
image: cars-system/backend
|
||||
volumes:
|
||||
- ./backend/src:/app/src
|
||||
- ./backend/scripts:/app/scripts
|
||||
env_file:
|
||||
- "backend/.env"
|
||||
- ".env"
|
||||
profiles:
|
||||
- scripts
|
||||
networks:
|
||||
database:
|
||||
elastic:
|
||||
minio:
|
||||
gotenberg:
|
||||
browserless:
|
||||
entrypoint: [ "python" ]
|
||||
|
||||
convex-dashboard:
|
||||
image: ghcr.io/get-convex/convex-dashboard:latest
|
||||
stop_grace_period: 10s
|
||||
stop_signal: SIGINT
|
||||
environment:
|
||||
- NEXT_PUBLIC_DEPLOYMENT_URL=${PUBLIC_CONVEX_URL}
|
||||
- NEXT_PUBLIC_LOAD_MONACO_INTERNALLY
|
||||
profiles:
|
||||
- convex-dashboard
|
||||
depends_on:
|
||||
convex:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
database:
|
||||
|
||||
networks:
|
||||
database:
|
||||
Reference in New Issue
Block a user