-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.dev.yaml
75 lines (69 loc) · 1.6 KB
/
compose.dev.yaml
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
75
version: "3"
services:
redis:
image: redis:7
ports:
- 6379:6379
networks:
- ls
localstack:
image: localstack/localstack:2.0
hostname: localstack
ports:
- "4566:4566" # LocalStack endpoint
- "4510-4559:4510-4559" # external services port range
environment:
- SERVICES=s3
- DOCKER_HOST=unix:///var/run/docker.sock
- HOSTNAME_EXTERNAL=localstack
volumes:
- ./scripts/setup-localstack.sh:/etc/localstack/init/ready.d/script.sh
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- ls
onchain-db:
image: timescale/timescaledb-ha:pg14-latest
restart: always
networks:
- ls
volumes:
- onchain-db-data:/var/lib/postgresql/data
- type: bind
source: ${PWD}/infra/onchain-db/01-init.sql
target: /docker-entrypoint-initdb.d/01-init.sql
environment:
- POSTGRES_DB=pragma
- PGPORT=5432
- POSTGRES_PASSWORD=pragma_password
ports:
- 5432:5432
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
fake-gcs:
image: tustvold/fake-gcs-server
command:
- "-scheme"
- "http"
- "-backend"
- "memory"
- "-public-host"
- "localhost:4443"
- "-external-url"
- "localhost:4443"
ports:
- "4443:4443"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4443/storage/v1/b"]
interval: 5s
timeout: 3s
retries: 3
networks:
ls:
name: ls
volumes:
onchain-db-data: