forked from alephdata/ingest-file
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 990 Bytes
/
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
version: "3.2"
services:
postgres:
image: postgres:10.0
environment:
POSTGRES_USER: ingest
POSTGRES_PASSWORD: ingest
POSTGRES_DATABASE: ingest
redis:
image: redis:alpine
command: ["redis-server", "--save", "3600", "10"]
convert-document:
build:
context: convert
image: ghcr.io/alephdata/convert-document
read_only: true
restart: on-failure
user: app
tmpfs: /tmp
ingest-file:
build:
context: .
image: ghcr.io/alephdata/ingest-file
hostname: ingest
tmpfs:
- /tmp:mode=777
- /data:mode=777
environment:
FTM_STORE_URI: postgresql://ingest:ingest@postgres/ingest
volumes:
- "./ingestors:/ingestors/ingestors"
- "./tests:/ingestors/tests"
- "./data:/ingestors/data"
- "./requirements.txt:/ingestors/requirements.txt"
- "./setup.py:/ingestors/setup.py"
- "~:/host"
depends_on:
- postgres
- redis
- convert-document