-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.27 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
version: '3.8'
services:
redis-1:
image: redis:7.2.0
ports:
- "6379:6379"
lukso-db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: indexing-lukso-data,indexing-lukso-structure
ports:
- "6543:5432"
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker-data:/var/lib/postgresql/data
lukso-indexing:
build:
context: .
dockerfile: Dockerfile
depends_on:
- lukso-db
environment:
REDIS_URI: redis-2:6379
LUKSO_DATA_CONNECTION_STRING: postgresql://postgres:password@lukso-db:5432/indexing-lukso-data
LUKSO_STRUCTURE_CONNECTION_STRING: postgresql://postgres:password@lukso-db:5432/indexing-lukso-structure
RPC_URL: ${RPC_URL}
IPFS_GATEWAYS: ${IPFS_GATEWAYS}
ARWEAVE_GATEWAY: ${ARWEAVE_GATEWAY}
lukso-api:
build:
context: .
dockerfile: api.dockerfile
depends_on:
- lukso-db
environment:
API_PORT: 3001
LUKSO_DATA_CONNECTION_STRING: postgresql://postgres:password@lukso-db:5432/indexing-lukso-data
LUKSO_STRUCTURE_CONNECTION_STRING: postgresql://postgres:password@lukso-db:5432/indexing-lukso-structure
ports:
- "3001:3001"