forked from eddalmond/ruststack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 992 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 992 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
34
35
36
37
38
39
40
41
42
# RustStack Docker Compose
# Drop-in replacement for LocalStack in your test environment
version: '3.8'
services:
ruststack:
build:
context: .
dockerfile: Dockerfile
ports:
- "4566:4566"
environment:
- RUST_LOG=info
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/health"]
interval: 5s
timeout: 3s
retries: 5
start_period: 2s
# Example usage in your test project:
#
# 1. Reference this compose file, or copy the ruststack service to your own:
#
# services:
# ruststack:
# image: ghcr.io/eddalmond/ruststack:latest
# ports:
# - "4566:4566"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:4566/health"]
# interval: 5s
# timeout: 3s
# retries: 5
#
# 2. Configure your AWS clients to use endpoint_url="http://localhost:4566"
#
# 3. Run tests:
# docker-compose up -d ruststack
# pytest
# docker-compose down