forked from IGVF-DACC/snovault
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
150 lines (140 loc) · 4.64 KB
/
docker-compose.yml
File metadata and controls
150 lines (140 loc) · 4.64 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
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
142
143
144
145
146
147
148
149
150
version: "3.8"
services:
localstack:
build:
context: ./docker/localstack/
image: snovault-localstack
environment:
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=testing
- AWS_SECRET_ACCESS_KEY=testing
- SERVICES=sqs,sts
- LS_LOG=warn
ports:
- "4566:4566"
postgres:
build:
context: ./docker/postgres/
image: snovault-postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
opensearch:
build:
context: ./docker/opensearch/
image: snovault-opensearch
environment:
- "discovery.type=single-node"
- "node.name=opensearch-node1"
- "OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
volumes:
- "./config/opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch.yml"
ports:
- "9200:9200"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
loader:
build:
context: .
dockerfile: ./docker/pyramid/Dockerfile
image: snovault-pyramid
environment:
- LOCALSTACK_ENDPOINT_URL=http://localstack:4566
- TRANSACTION_QUEUE_URL=http://localstack:4566/000000000000/transaction-queue
- INVALIDATION_QUEUE_URL=http://localhost:4566/000000000000/invalidation-queue
- TRANSACTION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/transaction-dead-letter-queue
- INVALIDATION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/invalidation-dead-letter-queue
volumes:
- ".:/snovault"
- "/snovault/src/snovault.egg-info"
command: load-development
depends_on:
- postgres
- opensearch
- localstack
pyramid:
build:
context: .
dockerfile: ./docker/pyramid/Dockerfile
image: snovault-pyramid
environment:
- LOCALSTACK_ENDPOINT_URL=http://localstack:4566
- TRANSACTION_QUEUE_URL=http://localstack:4566/000000000000/transaction-queue
- INVALIDATION_QUEUE_URL=http://localhost:4566/000000000000/invalidation-queue
- TRANSACTION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/transaction-dead-letter-queue
- INVALIDATION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/invalidation-dead-letter-queue
volumes:
- ".:/snovault"
- "/snovault/src/snovault.egg-info"
command: /scripts/pyramid/run-development.sh
ports:
- "6543:6543"
depends_on:
- loader
create-mapping:
build:
context: .
dockerfile: ./docker/pyramid/Dockerfile
image: snovault-pyramid
environment:
- LOCALSTACK_ENDPOINT_URL=http://localstack:4566
- TRANSACTION_QUEUE_URL=http://localstack:4566/000000000000/transaction-queue
- INVALIDATION_QUEUE_URL=http://localhost:4566/000000000000/invalidation-queue
- TRANSACTION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/transaction-dead-letter-queue
- INVALIDATION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/invalidation-dead-letter-queue
volumes:
- ".:/snovault"
- "/snovault/src/snovault.egg-info"
command: /scripts/pyramid/run-create-mapping.sh
depends_on:
- pyramid
invalidation-service:
build:
context: ./docker/snoindex/
image: snovault-snoindex
environment:
- LOCALSTACK_ENDPOINT_URL=http://localstack:4566
- OPENSEARCH_URL=http://opensearch:9200
- TRANSACTION_QUEUE_URL=http://localstack:4566/000000000000/transaction-queue
- INVALIDATION_QUEUE_URL=http://localhost:4566/000000000000/invalidation-queue
- RESOURCES_INDEX=snovault-resources
command: run-invalidation-service
depends_on:
- pyramid
indexing-service:
build:
context: ./docker/snoindex/
image: snovault-snoindex
environment:
- LOCALSTACK_ENDPOINT_URL=http://localstack:4566
- INVALIDATION_QUEUE_URL=http://localhost:4566/000000000000/invalidation-queue
- OPENSEARCH_URL=http://opensearch:9200
- BACKEND_URL=http://pyramid:6543
- BACKEND_KEY=foobar
- BACKEND_SECRET_KEY=bazqux
- RESOURCES_INDEX=snovault-resources
command: run-indexing-service
depends_on:
- pyramid
deduplication-service:
build:
context: ./docker/dedup/
image: igvfd-dedup
environment:
- LOCALSTACK_ENDPOINT_URL=http://localstack:4566
- QUEUE_URL=http://localhost:4566/000000000000/invalidation-queue
- NUM_WORKERS=20
- AWS_ACCESS_KEY_ID=testing
- AWS_SECRET_ACCESS_KEY=testing
- AWS_DEFAULT_REGION=us-west-2
command: ./run-forever.sh
depends_on:
- indexing-service