Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.73 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.73 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
localstack-snowflake:
container_name: "localstack-snowflake"
image: localstack/snowflake-next:latest
networks:
- localstack
ports:
- "127.0.0.1:4567:4567"
environment:
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?}
- SF_LOG=${SF_LOG:-info}
- GATEWAY_LISTEN=0.0.0.0:4567
# hostnames routed to the Snowflake emulator. The list replaces the
# built-in one: the default name for host clients (first entry, also the
# advertised API host), and the container name for the AWS container
- SF_HOSTNAMES=snowflake.localhost.localstack.cloud,localstack-snowflake
# S3 endpoint of the AWS container, for external stages on s3:// URLs
- SF_S3_ENDPOINT=http://localstack-aws:4566
healthcheck:
# the image has bash but no curl or python
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/4567 && printf 'GET /_localstack/health HTTP/1.0\\r\\n\\r\\n' >&3 && grep -q available <&3"]
interval: 5s
timeout: 5s
retries: 24
volumes:
- "./volume/snowflake:/var/lib/localstack"
localstack-aws:
container_name: "localstack-aws"
image: localstack/localstack:latest
ports:
- "127.0.0.1:4566:4566"
environment:
- DEBUG=${DEBUG:-0}
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:-}
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:4566/_localstack/health')"]
interval: 10s
timeout: 5s
retries: 12
volumes:
- "./volume/aws:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- localstack
networks:
localstack:
external: false
driver: bridge
name: localstack