forked from globaldigitalheritage/arches-3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (115 loc) · 3.08 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
version: '2'
services:
arches:
container_name: arches
image: globaldigitalheritage/arches-3d:master
build:
context: .
dockerfile: ./Dockerfile
command: run_arches
volumes:
- arches-log:/web_root/arches_3d/arches_3d/logs
- arches-static:/static_root
- arches-uploadedfiles:/web_root/arches_3d/arches_3d/uploadedfiles
environment:
- ARCHES_PROJECT=arches_3d
- 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
- ELASTICSEARCH_PREFIX=arches_3d
- DJANGO_MODE=PROD
- DJANGO_DEBUG=False
- AZURE_ACCOUNT_NAME=
- AZURE_ACCOUNT_KEY=
- AZURE_SSL=True
# - STATIC_URL=
- PYTHONUNBUFFERED=0
- GUNICORN_WORKER_TIMEOUT=28800
- DOMAIN_NAMES=localhost
- TZ=PST
ports:
- '8000:8000'
depends_on:
- db
- elasticsearch
nginx:
container_name: nginx
image: vmeijer/nginx-proxy:1.3.2.3
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
- SCRIPT_SOURCE_ALLOWED_HOSTS=*.cloudflare.com
- X_FRAME_ALLOWED_HOSTS=localhost
- PUBLIC_MODE=False
- TZ=PST
depends_on:
- arches
db:
container_name: db
image: mdillon/postgis:9.6-alpine
volumes:
- postgres-data:/var/lib/postgresql/data
- postgres-log:/var/log/postgresql
ports:
- '5432:5432'
environment:
- POSTGRES_PASSWORD=postgres
- TZ=PST
elasticsearch:
container_name: elasticsearch
image: elasticsearch:5.2
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
- TZ=PST
letsencrypt:
container_name: letsencrypt
image: vmeijer/letsencrypt-client: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:
arches-uploadedfiles:
couchdb-data:
couchdb-log:
postgres-data:
postgres-log:
elasticsearch-data:
letsencrypt:
letsencrypt-log:
letsencrypt-acme-challenge: