forked from archesproject/arches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
111 lines (105 loc) · 2.81 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
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
- ESHOST=elasticsearch
- ESPORT=9200
- DJANGO_MODE=PROD
- DJANGO_DEBUG=False
- DOMAIN_NAMES=localhost
- PYTHONUNBUFFERED=0
- TZ=PST
ports:
- '8000:8000'
depends_on:
- db
- elasticsearch
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
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:
postgres-data:
postgres-log:
elasticsearch-data:
letsencrypt:
letsencrypt-log:
letsencrypt-acme-challenge: