forked from kartoza/docker-geoserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
90 lines (83 loc) · 2.9 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
version: '2'
volumes:
db-backups:
geoserver-data:
services:
db:
image: kartoza/postgis:10.0-2.4
hostname: postgis
volumes:
#- ./pg/postgres_data:/var/lib/postgresql
- db-backups:/backups
ports:
- "25432:5432"
environment:
- USERNAME=docker
- PASS=docker
- ALLOW_IP_RANGE=172.20.0.0/24
restart: unless-stopped
geoserver:
image: kartoza/geoserver:2.12.0
hostname: geoserver
volumes:
- geoserver-data:/opt/geoserver/data_dir
ports:
- "8080:8080"
links:
- db:db
restart: unless-stopped
user: root
dbbackups:
image: kartoza/pg-backup:10.0
hostname: pg-backups
volumes:
- db-backups:/backups
links:
- db:db
environment:
# take care to let the project name below match that
# declared in the top of the makefile
- DUMPPREFIX=PG_geoserver
# These are all defaults anyway, but setting explicitly in
# case we ever want to ever use different credentials
- PGUSER=docker
- PGPASSWORD=docker
- PGPORT=5432
- PGHOST=db
- PGDATABASE=gis
restart: unless-stopped
btsync-data:
# BTSync backups for database dumps
image: kartoza/btsync
hostname: btsync-data
volumes:
# We mount RW so that we can use remove peer to clean up old backups off the server
- db-backups:/web:rw
env_file:
# The environment file should define two variables:
# SECRET: a RW btsync key if the server is a production server
# a RO btsync key if it is staging or development machine
# DEVICE: a unique device name so you can recognise which host is being peered with in btsync
# See the btsync example env in this folder for a template
# NOTE:
# Do not version control the env file as anyone else could peer it and sync
# our database backups etc.
- btsync-db.env
btsync-media:
# BTSync backups for django media
image: kartoza/btsync
hostname: btsync-media
volumes:
# We mount RW so that we can use peers
# to push shapefiles etc. to the server
- geoserver-data:/web:rw
env_file:
# The environment file should define two variables:
# SECRET: a RW btsync key if the server is a production server
# a RO btsync key if it is staging or development machine
# DEVICE: a unique device name so you can recognise which host is being peered with in btsync
# See the btsync example env in this folder for a template
# NOTE:
# Do not version control the env file as anyone else could peer it and sync
# our media backups etc.
- btsync-media.env