-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yaml
47 lines (43 loc) · 1.06 KB
/
docker-compose.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
services:
syncer:
build:
dockerfile: Dockerfile.syncer
restart: always
environment:
ENVIRONMENT:
OGMIOS_HOST: ogmios
OGMIOS_PORT: 1337
REDIS_URL: redis://default:minswap@redis:6379
POSTGRES_URL: postgresql://postgres:minswap@postgres:5432/syncer?schema=public&connection_limit=5
SYNC_START_POINT:
command: pnpm run syncer:start
redis:
image: redis:7
restart: always
command: --requirepass minswap
ports:
- "6379:6379"
volumes:
- redis-data:/data
postgres:
image: postgres:16
restart: always
environment:
POSTGRES_DB: syncer
POSTGRES_PASSWORD: minswap
volumes:
- ./src/syncer/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
ogmios:
image: cardanosolutions/cardano-node-ogmios:v6.5.0_9.0.0-${OGMIOS_NETWORK}
restart: always
ports:
- 1337:1337
volumes:
- ogmios-data:/db
volumes:
redis-data: {}
ogmios-data: {}
postgres-data: {}