-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 1.69 KB
/
docker-compose.yml
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
74
services:
app:
container_name: app
build: ./app
depends_on:
localstack:
condition: service_healthy
redis:
condition: service_healthy
environment:
- AWS_S3_ENDPOINT=http://localstack:4566/
- LITESTREAM_ACCESS_KEY_ID=unused
- LITESTREAM_SECRET_ACCESS_KEY=unused
- LITESTREAM_REGION=us-east-1
- DB_REPLICA_URL=s3://localstack/app/app.db
ports:
- "8080:8080"
localstack:
container_name: localstack
image: localstack/localstack
ports:
- "127.0.0.1:4566:4566"
environment:
- SERVICES=s3
volumes:
- ./localstack:/docker-entrypoint-initaws.d
healthcheck:
test:
- CMD
- bash
- -c
- awslocal s3 ls s3://localstack
interval: 5s
timeout: 10s
start_period: 10s
redis:
container_name: redis
hostname: redis
image: redis
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: ghcr.io/joeferner/redis-commander:latest
depends_on:
redis:
condition: service_healthy
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
data:
container_name: data
build: ./data
depends_on:
localstack:
condition: service_healthy
environment:
- AWS_S3_ENDPOINT=http://localstack:4566/
- LITESTREAM_ACCESS_KEY_ID=unused
- LITESTREAM_SECRET_ACCESS_KEY=unused
- LITESTREAM_REGION=us-east-1
- DB_REPLICA_URL=s3://localstack/app/app.db
ports:
- "9001:9001"