-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
154 lines (151 loc) · 4.58 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3'
services:
postgis:
image: jbl-carto/postgis:0.0.1
container_name: 'postgis'
build:
context: './jbl-postgis'
args:
# because it's our custom diretrory, not present ion base postgis image, cf. ./postgis/Dockerfile
- DOWNLOADED_PBF_FILES_HOME=/downloaded-pbf-files
# - POSTGRES_DB=dba_datab
# - POSTGRES_DB=peuimporte
- POSTGRES_USER=dba_user
- POSTGRES_PASSWORD=firstcutisthedeppest
- APP_DB_NAME=$NOM_BDD_GEOLOC
- APP_DB_USER_NAME=renderer_user
- APP_DB_USER_PWD=whereischarlie
# volumes:
# - geodata-volume:/var/lib/postgresql/data
# - ./data:/var/lib/postgresql/data
# cf. './.env' file , PBF_VAULT_HOME=/carto/vault
# - $PBF_VAULT_HOME:/downloaded-pbf-files
environment:
# - POSTGRES_DB=dba_datab
# - POSTGRES_DB=peuimporte
# Is there no dad at shinesolutions.com?
- POSTGRES_USER=dba_user
- POSTGRES_PASSWORD=firstcutisthedeppest
- DOWNLOADED_PBF_FILES_HOME=/downloaded-pbf-files
- APP_DB_NAME=$NOM_BDD_GEOLOC
- APP_DB_USER_NAME=renderer_user
- APP_DB_USER_PWD=whereischarlie
networks:
- cartoproto
restart: always
# jbl_postgis:
# image: carto-proto/postgis:0.0.1
# container_name: 'jblpostgis'
# build:
# context: './postgis'
# args:
# # because it's our custom diretrory, not present ion base postgis image, cf. ./postgis/Dockerfile
# - DOWNLOADED_PBF_FILES_HOME=/downloaded-pbf-files
# - POSTGRES_DB=$NOM_BDD_GEOLOC
# - POSTGRES_USER=renderer-user
# - POSTGRES_PASSWORD=whereischarlie
# volumes:
# - geodata-volume:/var/lib/postgresql/data
# # - ./data:/var/lib/postgresql/data
# # cf. './.env' file , PBF_VAULT_HOME=/carto/vault
# - $PBF_VAULT_HOME:/downloaded-pbf-files
# environment:
# - POSTGRES_DB=$NOM_BDD_GEOLOC
# # Is there no dad at shinesolutions.com?
# - POSTGRES_USER=renderer-user
# - POSTGRES_PASSWORD=whereischarlie
# - DOWNLOADED_PBF_FILES_HOME=/downloaded-pbf-files
# networks:
# - cartoproto
# restart: always
renderer:
image: carto-proto/gopnik-mapnik:0.0.1
container_name: 'rendereurpoulet'
build:
context: ./renderer
args:
# Is there no dad at shinesolutions.com?
- MAPNIK_POSTGRES_DB_HOST=postgis
- MAPNIK_POSTGRES_DB_PORT_NO=5432
- MAPNIK_POSTGRES_DB=$NOM_BDD_GEOLOC
- MAPNIK_POSTGRES_USER=renderer-user
- MAPNIK_POSTGRES_PASSWORD=whereischarlie
volumes:
- ./renderer/map_data:/map_data
- ./renderer/scripts:/scripts
- ./renderer/scripts:/shapes
# instead of deprecated 'volumes_from' directive with read-only option
# - geodata-volume:/var/lib/postgresql/data
# volumes_from:
# - postgis:ro
environment:
# Is there no dad at shinesolutions.com?
- MAPNIK_POSTGRES_DB_HOST=postgis
- MAPNIK_POSTGRES_DB_PORT_NO=5432
- MAPNIK_POSTGRES_DB=$NOM_BDD_GEOLOC
- MAPNIK_POSTGRES_USER=renderer_user
- MAPNIK_POSTGRES_PASSWORD=whereischarlie
ports:
# - cf. `./renderer/map_data/config.json`
- 8080:8080/tcp
- 9090:9090/tcp
- 8090:8090/tcp
- 8088:8088/tcp
# - 9080:9080/tcp
expose:
# - cf. `./renderer/map_data/config.json`
- 8080/tcp
- 9090/tcp
# I saw in docker logs, gopnik/mapnik trying to connect to 127.0.0.1:8090, with connection refused error
- 8090/tcp
# I'll just make anything, to make that guy's so-called cluster finally work (very poor doc I found on Gopnik)
# - 8090/udp
- 8088/tcp
# - 8088/udp
# - 9080/tcp
depends_on:
- postgis
networks:
- cartoproto
restart: always
web:
image: carto-proto/nginx:0.0.1
image: nginx:1.11-alpine
volumes:
- ./web:/usr/share/nginx/html
ports:
- "8888:80"
networks:
- cartoproto
restart: always
networks:
cartoproto:
# name: 'reseau-devops'
driver: bridge
# external: true
# ipam:
# config:
# - subnet: 192.168.160.0/24
# - gateway: 192.168.160.1
# # - gateway: 172.16.1.1
# -
# + NAMED VOLUMES
# -
volumes:
geodata-volume:
# - pbf-vault-volume:
# -
# - volumes:
# - logstash_dir:
# - driver: local
# - driver_opts:
# - o: bind
# - type: none
# - device: /path/to/logstash/folder
# -
# - filebeat_dir:
# - driver: local
# - driver_opts:
# - o: bind
# - type: none
# - device: /path/to/filebeat/folder