-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 1000 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 1000 Bytes
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
version: '2'
services:
db:
image: mdillon/postgis
restart: on-failure
environment:
POSTGRES_USER: django
POSTGRES_PASSWORD: password
POSTGRES_DB: datacommons
cache:
image: redis
restart: on-failure
cli:
build: .
image: datacommons
environment:
DATABASE_URL: postgis://django:password@db/datacommons
SEARCH_URL: whoosh:///code/var/search-index
CACHE_URL: redis://cache:6379
PYTHONUNBUFFERED: "TRUE"
HAYSTACK_RT_UPDATES: "FALSE"
entrypoint: python manage.py
command: check
depends_on:
- db
- cache
web:
image: datacommons
environment:
DATABASE_URL: postgis://django:password@db/datacommons
SEARCH_URL: whoosh:///code/var/search-index
CACHE_URL: redis://cache:6379
PYTHONUNBUFFERED: "TRUE"
restart: on-failure
command: gunicorn data_commons.wsgi -c data_commons/gunicorn.conf.py
ports:
- "8000:8000"
depends_on:
- db
- cache