-
Notifications
You must be signed in to change notification settings - Fork 202
/
compose.yml
40 lines (38 loc) · 916 Bytes
/
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
# Common build configuration for the ingestion server
# Extension field, see https://docs.docker.com/compose/compose-file/compose-file-v3/#extension-fields
x-ingestion-server-common: &ingestion-server-common
profiles:
- ingestion_server
- api
build:
target: ing
args: # Automatically inferred from env vars, unless specified
- INGESTION_PY_VERSION
image: openverse-ingestion_server
pull_policy: never
env_file:
- env.docker
- .env
volumes:
- .:/ingestion_server:z
stdin_open: true
tty: true
services:
ingestion_server:
<<: *ingestion-server-common
depends_on:
- db
- upstream_db
- es
- indexer_worker
ports:
- "50281:8001"
indexer_worker:
<<: *ingestion-server-common
depends_on:
- db
- upstream_db
- es
command: gunicorn indexer_worker:api --bind 0.0.0.0:8002
expose:
- "8002"