forked from archesproject/arches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
130 lines (123 loc) · 3.27 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
version: '2'
services:
arches:
container_name: arches
image: getty/arches:5.0
build:
context: .
dockerfile: ./Dockerfile
command: run_arches
volumes:
- arches-log:/arches/arches/logs
- arches-static:/static_root
environment:
- INSTALL_DEFAULT_GRAPHS=False
- INSTALL_DEFAULT_CONCEPTS=False
- PGUSERNAME=postgres
- PGPASSWORD=postgres
- PGDBNAME=arches
- PGHOST=db
- PGPORT=5432
- COUCHDB_HOST=couchdb
- COUCHDB_PORT=5984
- COUCHDB_USER=admin
- COUCHDB_PASS=password
- ESHOST=elasticsearch
- ESPORT=9200
- DJANGO_MODE=PROD
- DJANGO_DEBUG=False
- DOMAIN_NAMES=localhost
- PYTHONUNBUFFERED=0
- TZ=PST
ports:
- '8000:8000'
depends_on:
- db
- elasticsearch
- couchdb
nginx:
container_name: nginx
image: cvast/cvast-nginx:1.2.0
restart: unless-stopped
ports:
- '80:80'
- '443:443'
volumes:
- arches-static:/www/static
- letsencrypt-acme-challenge:/var/www
- letsencrypt:/etc/letsencrypt
environment:
- NGINX_PROXY_MODE=local
- NGINX_PROTOCOL=http
- LOCAL_PROXY_HOST=arches
- LOCAL_PROXY_PORT=8000
- DOMAIN_NAMES=localhost
- PUBLIC_MODE=False
- TZ=PST
depends_on:
- arches
db:
container_name: db
image: kartoza/postgis:12.0
volumes:
- postgres-data:/var/lib/postgresql/data
- postgres-log:/var/log/postgresql
- ./arches/install/init-unix.sql:/docker-entrypoint-initdb.d/init.sql # to set up the DB template
ports:
- '5432:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASS=postgres
- POSTGRES_DB=postgres
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,postgis_topology
- TZ=PST
couchdb:
container_name: couchdb
image: couchdb:2.1.1
ports:
- "5984:5984"
environment:
COUCHDB_USER: admin
COUCHDB_PASSWORD: password
volumes:
- couchdb-data:/usr/local/var/lib/couchdb
- couchdb-log:/usr/local/var/log/couchdb
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.5.1
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
- TZ=PST
- discovery.type=single-node
- discovery.seed_hosts=
- "ES_JAVA_OPTS=-Xms400m -Xmx400m"
letsencrypt:
container_name: letsencrypt
image: cvast/cvast-letsencrypt:1.1
volumes:
- letsencrypt-acme-challenge:/var/www
- letsencrypt:/etc/letsencrypt
- letsencrypt-log:/var/log/letsencrypt
command: get_certificate
environment:
- MODE=regular
- DOMAIN_NAMES=localhost
- PRODUCTION_MODE=False
- PERSISTENT_MODE=True
- TZ=PST
volumes:
arches-log:
arches-static:
couchdb-data:
couchdb-log:
postgres-data:
postgres-log:
elasticsearch-data:
letsencrypt:
letsencrypt-log:
letsencrypt-acme-challenge: