This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
141 lines (132 loc) · 4.82 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: "3"
services:
db:
image: postgres:15
restart: always
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: ${SINGULARITY_DB_USER:-postgres}
POSTGRES_PASSWORD: ${SINGULARITY_DB_PASSWORD:-postgres}
POSTGRES_DB: ${SINGULARITY_DB_NAME:-singularity}
volumes:
- motion-singularity-volume:/var/lib/postgresql/data
ports:
- 5432:5432
singularity_admin_init:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
command: admin init --identity Motion
volumes:
- motion-singularity-volume:/usr/src/app/storage
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
LOTUS_TEST:
LOTUS_API:
LOTUS_TOKEN:
depends_on:
db:
condition: service_healthy
singularity_api:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
command: run api --bind :9090
volumes:
- motion-singularity-volume:/usr/src/app/storage
ports:
- 9090:9090
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
LOTUS_TEST:
LOTUS_API:
LOTUS_TOKEN:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/health"]
interval: 5s
timeout: 5s
retries: 5
depends_on:
singularity_admin_init:
condition: service_completed_successfully
singularity_dataset_worker:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
volumes:
- motion-singularity-volume:/usr/src/app/storage
command: run dataset-worker
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
LOTUS_TEST:
LOTUS_API:
LOTUS_TOKEN:
depends_on:
singularity_admin_init:
condition: service_completed_successfully
singularity_deal_pusher:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
volumes:
- motion-singularity-volume:/usr/src/app/storage
command: run deal-pusher --max-replication-factor ${MOTION_REPLICATION_FACTOR:-0}
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
LOTUS_TEST:
LOTUS_API:
LOTUS_TOKEN:
depends_on:
singularity_admin_init:
condition: service_completed_successfully
singularity_deal_tracker:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
volumes:
- motion-singularity-volume:/usr/src/app/storage
command: run deal-tracker
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
LOTUS_TEST:
LOTUS_API:
LOTUS_TOKEN:
depends_on:
singularity_admin_init:
condition: service_completed_successfully
singularity_content_provider:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
command: run content-provider --http-bind :7778
volumes:
- motion-singularity-volume:/usr/src/app/storage
ports:
- 7778:7778
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
LOTUS_TEST:
LOTUS_API:
LOTUS_TOKEN:
depends_on:
singularity_admin_init:
condition: service_completed_successfully
motion:
image: ghcr.io/filecoin-project/motion:main
entrypoint: motion --experimentalSingularityStore --experimentalRemoteSingularityAPIUrl=singularity_api:9090 --experimentalSingularityContentURLTemplate=${SINGULARITY_CONTENT_PROVIDER_DOMAIN:-http://singularity_content_provider:7778}/piece/{PIECE_CID}
ports:
- 40080:40080
environment:
- MOTION_STORE_DIR=/usr/src/app/storage
- LOTUS_TEST
- MOTION_STORAGE_PROVIDERS
- MOTION_PRICE_PER_GIB_EPOCH
- MOTION_PRICE_PER_GIB
- MOTION_PRICE_PER_DEAL
- MOTION_DEAL_START_DELAY
- MOTION_DEAL_DURATION
- MOTION_SINGULARITY_MAX_CAR_SIZE
- MOTION_SINGULARITY_PACK_THRESHOLD
- MOTION_SINGULARITY_SCHEDULE_CRON
- MOTION_SINGULARITY_SCHEDULE_DEAL_NUMBER
- MOTION_WALLET_KEY
- MOTION_VERIFIED_DEAL
volumes:
- motion-singularity-volume:/usr/src/app/storage
depends_on:
singularity_api:
condition: service_healthy
volumes:
motion-singularity-volume: