-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (99 loc) · 2.49 KB
/
docker-compose.yml
File metadata and controls
104 lines (99 loc) · 2.49 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
x-logging: &logging
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
services:
postgres:
container_name: postgres
image: postgres:15.3
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
hostname: postgres
volumes:
- /opt/docker/psql_data:/var/lib/postgresql/data
healthcheck:
test: [ CMD-SHELL, "pg_isready -h postgres -p 5432" ]
interval: 3s
timeout: 3s
retries: 10
start_period: 5s
expose:
- "5432"
ports:
- 5432:5432
networks:
- net
db_migration:
image: ${DOCKERHUB_ORG_NAME}/${NEON_PROXY_REPO_NAME}:${NEON_PROXY_TAG}
container_name: db_migration_neon-proxy
entrypoint: /usr/bin/psql
command: >-
-W
-h postgres
-p 5432
-U neon-proxy
-d neon-db
-f /opt/data/schemas/scheme.sql
environment:
- PGPASSWORD=neon-proxy-pass
networks:
- net
depends_on:
postgres:
condition: service_healthy
<<: *logging
neon-proxy:
image: ${DOCKERHUB_ORG_NAME}/${NEON_PROXY_REPO_NAME}:${NEON_PROXY_TAG}
container_name: neon-proxy
restart: "always"
entrypoint: ./proxy
command: >-
${NEON_EVM_ADDRESS}
-u ${SOLANA_URL}
-w ${SOLANA_WS_URL}
--pyth-solana-url ${PYTH_SOLANA_URL}
--pyth-mapping-addr ${PYTH_MAPPING_ADDR}
-l 0.0.0.0:8018
--pg-url postgres://neon-proxy:neon-proxy-pass@postgres:5432/neon-db
--simulation-commitment ${SIMULATION_COMMITMENT}
environment:
- RUST_LOG=info,proxy=debug,solana_api=debug,db=debug,neon_lib=debug
depends_on:
- neon-indexer
ports:
- 8018:8018
expose:
- 8018
networks:
- net
<<: *logging
neon-indexer:
image: ${DOCKERHUB_ORG_NAME}/${NEON_PROXY_REPO_NAME}:${NEON_PROXY_TAG}
container_name: neon-indexer
restart: "always"
entrypoint: ./indexer
command: >-
${NEON_EVM_ADDRESS}
-u ${SOLANA_URL}
--pg-url postgres://neon-proxy:neon-proxy-pass@postgres:5432/neon-db
--metrics-addr 0.0.0.0:8317
--max-traverse-tasks ${MAX_TRAVERSE_TASKS}
environment:
- RUST_LOG=info,indexer=debug,solana_api=debug,db=debug,parse=debug
ports:
- 8317:8317
expose:
- 8317
networks:
- net
depends_on:
db_migration:
condition: service_completed_successfully
<<: *logging
networks:
net: