-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
89 lines (82 loc) · 2.2 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
version: '2.4'
services:
db:
image: wof_postgis
volumes:
- ../postgres_data:/var/lib/postgresql/data
- ../postgres_data_wf:/tablespace/data_wf
- ../postgres_data_wd:/tablespace/data_wd
- ../postgres_data_work:/tablespace/data_work
tmpfs:
- /tmp
ports:
- 127.0.0.1:25433:5432
shm_size: "2g"
environment:
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
- POSTGRES_DB=whosonfirst
- POSTGRES_USER=whosonfirst
- POSTGRES_PASSWORD=whosonfirst
- PGDATABASE=whosonfirst
- PGUSER=whosonfirst
- PGPASSWORD=whosonfirst
stop_signal: SIGINT # Fast Shutdown mode
stop_grace_period: 120s
# restart: unless-stopped
# labels:
# - "traefik.enable=false"
# healthcheck:
# test: ["CMD", "pg_isready", "-q", "-U", "postgres", "-h", "db"]
# interval: 2s
# timeout: 3s
# retries: 3
# stop_grace_period: 5s
# stop_signal: SIGINT
wof_wiki_dw:
image: wof_wiki_dw
volumes:
- ../eu:/wof/eu
- ../whosonfirst-data:/wof/whosonfirst-data
- ../whosonfirst-data:/wof/wfd
- ../wikidata_dump:/wof/wikidata_dump
- ../natural-earth-vector:/wof/natural-earth-vector
- ../geonames:/wof/geonames
- ../taginfo:/wof/taginfo
- ./code:/wof/code
- ./wdtaxonomy:/wof/wdtaxonomy
- /var/www/html/wof-wiki-dw/output:/wof/output
links:
- db:db
environment:
- PGHOST=db
- PGPORT=5432
- PGUSER=whosonfirst
- PGDATABASE=whosonfirst
- PGPASSWORD=whosonfirst
- DB_HOST=db
- DB_PGPORT=5432
- DB_USER=whosonfirst
- DB_NAME=whosonfirst
- DB_PASS=whosonfirst
- outputdir=/wof/output
notebook:
image: jupyter/datascience-notebook
volumes:
- "../notebook_work:/home/jovyan/work"
ports:
- 127.0.0.1:28888:8888
links:
- db:db
environment:
- USE_HTTPS=yes
- PASSWORD=whosonfirst
- PGHOST=db
- PGUSER=whosonfirst
- PGDATABASE=whosonfirst
- PGPASSWORD=whosonfirst
- DB_HOST=db
- DB_USER=whosonfirst
- DB_NAME=whosonfirst
- DB_PASS=whosonfirst
- DATABASE_URL=postgresql://whosonfirst@db