-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.yaml
More file actions
33 lines (31 loc) · 825 Bytes
/
compose.yaml
File metadata and controls
33 lines (31 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# compose.yaml
# Snowflake Emulator - Docker Compose configuration
#
# Usage:
# Development: docker compose up --build
# CI (memory): DB_PATH=:memory: docker compose up
services:
snowflake-emulator:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/nnnkkk7/snowflake-emulator:latest
container_name: snowflake-emulator
ports:
- "${PORT:-8080}:8080"
environment:
- PORT=8080
- DB_PATH=${DB_PATH:-/data/snowflake.db}
- STAGE_DIR=/data/stages
volumes:
- emulator-data:/data
- ./testdata:/testdata:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: ${HEALTHCHECK_INTERVAL:-30s}
timeout: 10s
start_period: 5s
retries: 3
restart: unless-stopped
volumes:
emulator-data: