Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion internal/localmode/assets/docker-compose.template.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by scripts/generate-volcano-cli-localmode-assets from cmd/volcano/commands/docker-compose.template.yml. Do not edit by hand.
# Generated by scripts/generate-volcano-cli-localmode-assets from infrastructure/local-mode/docker-compose.template.yml. Do not edit by hand.
# Regenerate this file from the source local-mode Compose template.

services:
Expand Down Expand Up @@ -36,6 +36,32 @@ services:
timeout: 5s
retries: 5

dynamodb:
image: ${VOLCANO_DYNAMODB_IMAGE:-amazon/dynamodb-local:latest}
container_name: volcano-dynamodb
user: root
command: ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-dbPath", "/home/dynamodblocal/data"]
working_dir: /home/dynamodblocal
ports:
- "8003:8000"
volumes:
- volcano-dynamodb:/home/dynamodblocal/data
networks:
- volcano-internal

# Local SMTP catch-all for testing auth emails. The seeded default project's
# auth_config points its smtp_host at "mailpit" so signup confirmations,
# password reset emails, etc. land in Mailpit's inbox at http://localhost:8025
# instead of being discarded.
mailpit:
image: ${VOLCANO_MAILPIT_IMAGE:-axllent/mailpit:v1.30}
container_name: volcano-mailpit
ports:
- "1025:1025" # SMTP
- "8025:8025" # Web UI — view captured emails here
networks:
- volcano-internal

server:
image: ${VOLCANO_IMAGE:-kong/volcano:latest}
container_name: volcano-server
Expand All @@ -44,11 +70,19 @@ services:
condition: service_healthy
redis:
condition: service_healthy
dynamodb:
condition: service_started
environment:
# Core settings
LOCAL_MODE: "true"
DATABASE_URL: postgres://volcano:volcano@postgres:5432/volcano?sslmode=disable
REDIS_URL: redis://redis:6379
DYNAMODB_ENDPOINT: http://dynamodb:8000
FUNCTION_INVOCATIONS_TABLE_NAME: volcano-local-function-invocations
LOG_EVENTS_HOT_PATH_TABLE_NAME: volcano-local-log-events
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: local
AWS_SECRET_ACCESS_KEY: local
REDIS_TIMEOUT: "60"
USAGE_SYNC_INTERVAL: "30"
USAGE_SYNC_LOCK_TTL: "30"
Expand Down Expand Up @@ -135,4 +169,5 @@ networks:
volumes:
volcano-db:
volcano-redis:
volcano-dynamodb:
volcano-storage:
Loading