-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.32 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
51
services:
postgres:
image: postgres:17-alpine
shm_size: 1gb
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: ${DEGOV_DB_PASSWORD}
volumes:
- ./.data/postgres:/var/lib/postgresql/data
- ./init-scripts/postgres:/docker-entrypoint-initdb.d
ports:
- "${DEGOV_DB_PORT:-5432}:5432"
indexer:
image: degov-indexer
depends_on:
- postgres
build:
context: .
dockerfile: docker/indexer.Dockerfile
ports:
- "${DEGOV_INDEXER_PORT:-4350}:4350"
volumes:
- ./degov.yml:/app/degov.yml
environment:
DB_HOST: postgres
DB_NAME: indexer
DB_USER: postgres
DB_PASS: ${DEGOV_DB_PASSWORD}
DB_PORT: 5432
GQL_PORT: 4350
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
OPENROUTER_DEFAULT_MODEL: ${OPENROUTER_DEFAULT_MODEL}
CHAIN_RPC_1: ${CHAIN_RPC_1}
DEGOV_CONFIG_PATH: degov.yml
# CHAIN_RPC_10: ${CHAIN_RPC_10}
# CHAIN_RPC_...: ${CHAIN_RPC_...}
web:
image: degov-web
depends_on:
- postgres
build:
context: .
dockerfile: docker/web.Dockerfile
ports:
- "${DEGOV_WEB_PORT:-3000}:3000"
environment:
JWT_SECRET_KEY: ${DEGOV_WEB_JWT_SECRET}
DATABASE_URL: postgresql://postgres:${DEGOV_DB_PASSWORD}@postgres/degov
# DEGOV_CONFIG_PATH: degov.yml