-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (48 loc) · 1.87 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
version: '3.4'
services:
# dumps the non geodata db
pgdumper_nogeo:
container_name: dumper_${GEONODE_DATABASE}_${COMPOSE_PROJECT_NAME}
image: olivierdalang/spcgeonode:pgdumper-latest
build: ./pgdumper/
volumes:
- pgdumps:/spcgeonode-pgdumps/
restart: on-failure
environment:
- DATABASE=${GEONODE_DATABASE}
- DATABASE_URL=postgres://${GEONODE_DATABASE}:${GEONODE_DATABASE_PASSWORD}@postgres:5432/${GEONODE_DATABASE}
# dumps the geodata db
pgdumper_geo:
container_name: dumper_${GEONODE_GEODATABASE}_${COMPOSE_PROJECT_NAME}
image: olivierdalang/spcgeonode:pgdumper-latest
build: ./pgdumper/
volumes:
- pgdumps:/spcgeonode-pgdumps/
restart: on-failure
environment:
- DATABASE=${GEONODE_GEODATABASE}
# pgdumper needs postgres:// as connection string for the geodatabase
- DATABASE_URL=postgres://${GEONODE_GEODATABASE}:${GEONODE_GEODATABASE_PASSWORD}@postgres:5432/${GEONODE_GEODATABASE}
# PostGIS database.
postgres:
# use geonode official postgis 10 image
image: geonode/postgis:10
build: ./postgis/
environment:
# database info, ${variables} are read from .env
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- GEONODE_DATABASE=${GEONODE_DATABASE}
- GEONODE_DATABASE_PASSWORD=${GEONODE_DATABASE_PASSWORD}
- GEONODE_GEODATABASE=${GEONODE_GEODATABASE}
- GEONODE_GEODATABASE_PASSWORD=${GEONODE_GEODATABASE_PASSWORD}
- DATABASE_URL=postgres://${GEONODE_DATABASE}:${GEONODE_DATABASE_PASSWORD}@postgres:5432/${GEONODE_DATABASE}
- GEODATABASE_URL=postgis://${GEONODE_GEODATABASE}:${GEONODE_GEODATABASE_PASSWORD}@postgres:5432/${GEONODE_GEODATABASE}
volumes:
- database:/var/lib/postgresql/data/
restart: on-failure
# uncomment to enable remote connections to postgres
#ports:
# - "5432:5432"
volumes:
database:
pgdumps: