-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (74 loc) · 1.88 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
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
version: "3.3"
services:
mina:
image: ${MINA}
container_name: mina
ports:
- "6060:6060"
- "8302:8302"
- "127.0.0.1:3085:3085"
restart: always
env_file:
- $HOME/mina-archive-mainnet/.env
environment:
GCLOUD_KEYFILE: ${GCLOUD_KEYFILE}
NETWORK_NAME: ${NETWORK_NAME}
GCLOUD_BLOCK_UPLOAD_BUCKET: ${GCLOUD_BLOCK_UPLOAD_BUCKET}
volumes:
- "$HOME/.mina-config:/root/.mina-config"
- "$HOME/mina-archive-mainnet/${GCLOUD_KEYFILE}:/root/${GCLOUD_KEYFILE}"
- "./import.sh:/entrypoint.d/import.sh"
command: >
daemon
--peer-list-url ${PEER_LIST}
--metrics-port 6060
--archive-address archive:3086
--log-precomputed-blocks true
--insecure-rest-server
--file-log-level Debug
--log-level Info
--upload-blocks-to-gcloud true
${STOP_TIME}
networks:
- archive
- mina
postgres:
image: ${POSTGRES}
container_name: postgres
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./pgdata/data:/var/lib/postgresql/data/:rw
- ./pginit/init-mina-db.sh:/docker-entrypoint-initdb.d/init-mina-db.sh
env_file:
- $HOME/mina-archive-mainnet/.env
environment:
POSTGRES_USER: ${PGUSER}
POSTGRES_PASSWORD: ${PGPASSWORD}
POSTGRES_DB: ${PGDATABASE}
PGDATA: "/var/lib/postgresql/data/pgdata"
networks:
- archive
archive:
image: ${ARCHIVE}
container_name: archive
depends_on:
- postgres
pid: host
restart: always
env_file:
- $HOME/mina-archive-mainnet/.env
environment:
PGUSER: ${PGUSER}
PGPASSWORD: ${PGPASSWORD}
command: mina-archive run --postgres-uri ${PGURI} --server-port 3086 --log-level debug
networks:
- archive
- mina
volumes:
postgres:
networks:
archive:
driver: bridge
mina:
driver: bridge