forked from ealgis/ealgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (62 loc) · 1.62 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
version: "3"
services:
datastore:
image: ealgis/postgis:latest
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=datastore
volumes:
- ./loaders:/app
- datastore_pgdata:/var/lib/postgresql/data
# volumes:
#
# FOR DEVELOPMENT ONLY
# Enable this mapping to inject the tweaked postgresql.conf file into our PostgreSQL container.
# NB: PostgreSQL MUST already be initialised with at least one database before you enable this.
# - ./db/postgresql.conf:/var/lib/postgresql/data/postgresql.conf
#
# Enable this mapping and create ./dev/pg_log/ to get easier access to PostgreSQL's log files for debugging.
# - ./dev/pg_log/:/var/lib/postgresql/data/pg_log/
db:
image: ealgis/postgis:latest
ports:
- "127.0.0.1:5433:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ealgis
volumes:
- db_pgdata:/var/lib/postgresql/data
redis:
image: redis:5-alpine
ports:
- "127.0.0.1:6379:6379"
web:
build: django/
command: runserver
volumes:
- ./django/:/app:delegated
ports:
- "127.0.0.1:8000:8000"
environment:
- REDIS_LOCATION=redis://redis:6379/1
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=ealgis
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DATASTORE_HOST=datastore
- DATASTORE_PORT=5432
- DATASTORE_NAME=datastore
- DATASTORE_USERNAME=postgres
- DATASTORE_PASSWORD=postgres
env_file:
- web-variables.env
depends_on:
- db
- datastore
- redis
volumes:
datastore_pgdata:
db_pgdata: