This repository has been archived by the owner on Dec 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (49 loc) · 1.57 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
version: '3.2'
services:
waymarkedtrails:
image: waymarkedtrails/waymarkedtrails:latest
volumes:
# create with e.g. openssl req -newkey rsa:2048 -x509 -keyout key.pem -out server.pem -subj "/C=/ST=/L=/O=/OU=/CN=localhost/" -days 3650 -nodes
- type: bind
source: ../data/etc/nginx/key.pem
target: /etc/nginx/key.pem
- type: bind
source: ../data/etc/nginx/server.pem
target: /etc/nginx/server.pem
# create with openssl dhparam -out dh2048.pem 2048
- type: bind
source: ../data/etc/nginx/dh2048.pem
target: /etc/nginx/dh2048.pem
- type: bind
source: ../waymarked-trails-site
target: /waymarkedtrails
- type: bind
source: ../data/import
target: /import
depends_on:
- db
ports:
- "80:80"
- "443:443"
environment:
- PGHOST=db
- PGUSER=postgres
- NOCERT=yes
- NODH=yes
- DATAFILE=data.osm.pbf
- DBNAME=planet
# parallel jobs, when importing data
- JOBS=4
# map type to use. If you change this you have to re-import the data.
- WMT_CONFIG=hiking
db:
image: mdillon/postgis:9.6-alpine
volumes:
- type: volume
source: waymarkedtrails_data
target: /var/lib/postresql/data
ports:
- "5432:5432"
volumes:
waymarkedtrails_data:
driver: local