forked from Miracle656/Lens
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.08 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
version: "3.9"
services:
lens:
build: .
ports:
- "3002:3002"
environment:
- DATABASE_URL=postgresql://lens:lens@postgres:5432/lens
- REDIS_URL=redis://redis:6379
- WATCHED_PAIRS=XLM:native/USDC:GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3002/status"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=lens
- POSTGRES_PASSWORD=lens
- POSTGRES_DB=lens
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lens -d lens"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redisdata:/data
volumes:
pgdata:
redisdata: