forked from ealgis/ealgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-buildpy.yml
48 lines (48 loc) · 1.35 KB
/
docker-compose-buildpy.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
version: "3"
services:
datastore:
image: ealgis/postgis:latest
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=datastore
# 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
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ealgis
redis:
image: redis:5-alpine
web:
build: django/
command: build
volumes:
- ./django/:/app:delegated
- ./build/:/build:delegated
- ./frontend:/frontend:delegated
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