-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.full.yml
More file actions
73 lines (69 loc) · 1.74 KB
/
Copy pathcompose.full.yml
File metadata and controls
73 lines (69 loc) · 1.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Full stack - LocalStack + buquet services (for CI/demos)
#
# Usage:
# docker compose -f compose.full.yml up -d
# open http://localhost:8080 # Dashboard
#
services:
localstack:
image: localstack/localstack:latest
ports:
- "4566:4566"
environment:
- SERVICES=s3
- DEFAULT_REGION=us-east-1
volumes:
- localstack_data:/var/lib/localstack
- ./scripts/init-localstack.sh:/etc/localstack/init/ready.d/init.sh:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
interval: 5s
timeout: 10s
retries: 12
start_period: 10s
worker:
build: .
depends_on:
localstack:
condition: service_healthy
environment:
- S3_ENDPOINT=http://localstack:4566
- S3_BUCKET=buquet-dev
- S3_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- RUST_LOG=info
command: ["worker", "--no-monitor"]
restart: unless-stopped
monitor:
build: .
depends_on:
localstack:
condition: service_healthy
environment:
- S3_ENDPOINT=http://localstack:4566
- S3_BUCKET=buquet-dev
- S3_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- RUST_LOG=info
command: ["monitor"]
restart: unless-stopped
dashboard:
build: .
depends_on:
localstack:
condition: service_healthy
ports:
- "8080:8080"
environment:
- S3_ENDPOINT=http://localstack:4566
- S3_BUCKET=buquet-dev
- S3_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- RUST_LOG=info
command: ["serve", "--port", "8080"]
restart: unless-stopped
volumes:
localstack_data: