forked from opensanctions/opensanctions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 1.05 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
version: "2"
services:
postgres:
image: postgres:11.4
volumes:
- "./data/postgres-data:/var/lib/postgresql/data"
environment:
POSTGRES_USER: opensanctions
POSTGRES_PASSWORD: opensanctions
redis:
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- ./data/redis-data:/data
ui:
build: .
command: gunicorn -t 900 -w 8 -b 0.0.0.0:8000 --log-level info --log-file - memorious.ui.views:app
links:
- redis
- postgres
volumes:
- "./data/data:/data"
tmpfs:
- "/tmp"
ports:
- "8000:8000"
environment:
BALKHASH_BACKEND: POSTGRESQL
BALKHASH_DATABASE_URI: postgresql://opensanctions:opensanctions@postgres/opensanctions
worker:
build: .
command: memorious process
links:
- postgres
- redis
volumes:
- "./data/data:/data"
tmpfs:
- "/tmp"
environment:
BALKHASH_BACKEND: POSTGRESQL
BALKHASH_DATABASE_URI: postgresql://opensanctions:opensanctions@postgres/opensanctions