-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
142 lines (142 loc) · 3.75 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
version: "3.7"
x-postgresql_port: &postgresql_port 5432
x-geoserver_port : &geoserver_port 8080
x-postgrest_port : &postgrest_port 3000
x-jupyter_port : &jupyter_port 8888
x-nginx_port : &nginx_port 8081
x-loading_dock : &loading_dock ./loading_dock
x-workspace : &workspace ./workspace
x-master_password: &master_password nhdplus
services:
dz_pg:
build:
context: .
dockerfile: Dockerfile.pg
shm_size: '2gb'
hostname: dz_pg
environment:
POSTGRES_PASSWORD: *master_password
ports:
- target: 5432
published: *postgresql_port
networks:
- dz
volumes:
- type: bind
source: *loading_dock
target: /loading_dock
- type: bind
source: *workspace
target: /workspace
- type: volume
source: pgdata
target: /var/lib/postgresql/data
- type: volume
source: tblspdata
target: /tblspdata
dz_gs:
build:
context: .
dockerfile: Dockerfile.gs
hostname: dz_gs
environment:
POSTGRES_PASSWORD: *master_password
ports:
- target: 8080
published: *geoserver_port
networks:
- dz
volumes:
- type: bind
source: *loading_dock
target: /loading_dock
- type: bind
source: *workspace
target: /workspace
- type: volume
source: geoserver-data
target: /opt/geoserver/data_dir
depends_on:
- dz_pg
dz_pr:
build:
context: .
dockerfile: Dockerfile.pr
shm_size: '2gb'
hostname: dz_pr
environment:
POSTGRES_PASSWORD: *master_password
ports:
- target: 3000
published: *postgrest_port
networks:
- dz
volumes:
- type: bind
source: *loading_dock
target: /loading_dock
depends_on:
- dz_pg
dz_jp:
build:
context: .
dockerfile: Dockerfile.jp
hostname: dz_jp
environment:
POSTGRES_PASSWORD: *master_password
ports:
- target: 8888
published: *jupyter_port
networks:
- dz
volumes:
- type: bind
source: *loading_dock
target: /loading_dock
- type: bind
source: *workspace
target: /workspace
- type: volume
source: jupyter
target: /opt/conda/etc/jupyter
- type: volume
source: home-jovyan
target: /home/jovyan
depends_on:
- dz_pg
dz_ng:
build:
context: .
dockerfile: Dockerfile.ng
hostname: dz_ng
environment:
POSTGRES_PASSWORD: *master_password
JUPYTER_PORT: *jupyter_port
POSTGREST_PORT: *postgrest_port
GEOSERVER_PORT: *geoserver_port
NGINX_PORT: *nginx_port
ports:
- target: 8081
published: *nginx_port
networks:
- dz
volumes:
- type: bind
source: *loading_dock
target: /loading_dock
- type: bind
source: *workspace
target: /workspace
depends_on:
- dz_pg
- dz_gs
- dz_pr
networks:
dz:
driver: bridge
volumes:
tblspdata:
pgdata:
geoserver-data:
jupyter:
home-jovyan: