forked from alephdata/aleph
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
136 lines (126 loc) · 2.68 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
version: "3.2"
services:
postgres:
image: postgres:10.0
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: aleph
POSTGRES_PASSWORD: aleph
POSTGRES_DATABASE: aleph
networks:
- aleph
elasticsearch:
image: ghcr.io/alephdata/aleph-elasticsearch:3bb5dbed97cfdb9955324d11e5c623a5c5bbc410
hostname: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true"
- xpack.monitoring.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
networks:
- aleph
redis:
image: redis:alpine
command: [ "redis-server", "--save", "3600", "10" ]
volumes:
- redis-data:/data
networks:
- aleph
ingest-file:
image: ghcr.io/alephdata/ingest-file:3.19.3
tmpfs:
- /tmp:mode=777
volumes:
- archive-data:/data
depends_on:
- postgres
- redis
restart: on-failure
env_file:
- aleph.env
networks:
- aleph
worker:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.4}
command: aleph worker
restart: on-failure
depends_on:
- postgres
- elasticsearch
- redis
- ingest-file
tmpfs:
- /tmp
volumes:
- archive-data:/data
env_file:
- aleph.env
networks:
- aleph
shell:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.4}
command: /bin/bash
depends_on:
- postgres
- elasticsearch
- redis
- ingest-file
- worker
tmpfs:
- /tmp
volumes:
- archive-data:/data
- "./mappings:/aleph/mappings"
- "~:/host"
env_file:
- aleph.env
networks:
- aleph
api:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.4}
command: gunicorn -w 6 -b 0.0.0.0:8000 --timeout 3600 --log-level debug --log-file - aleph.wsgi:app
expose:
- 8000
depends_on:
- postgres
- elasticsearch
- redis
- worker
- ingest-file
tmpfs:
- /tmp
volumes:
- archive-data:/data
env_file:
- aleph.env
networks:
- aleph
ui:
image: ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG:-3.15.4}
depends_on:
- api
networks:
- aleph
- nginx-load-balancer
#ports:
# - "8080:8080"
volumes:
archive-data: {}
postgres-data: {}
redis-data: {}
elasticsearch-data: {}
networks:
aleph:
nginx-load-balancer:
external:
name: docker_nginx-load-balancer