-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
169 lines (166 loc) · 4.97 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
version: '3'
networks:
default:
name: water-api_default
cumulus:
name: cumulus-api_default
services:
charts:
build:
context: ./d3-chart-server
container_name: charts
restart: on-failure
environment:
# NOTE:
# ROOT_URL=localhost:3000 when running water-api in vscode debugger
# ROOT_URL=http://charts:3000 when running water-api in docker-compose stack
# - ROOT_URL=http://localhost:3000
- ROOT_URL=http://charts:3000
ports:
- '3000:3000'
water-db:
image: postgis/postgis:13-3.1
container_name: water-db
restart: always
environment:
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
# --------------------------------
water-tiger-data:
build:
context: ./postgis-tiger-data-init
container_name: water-tiger-data
restart: on-failure
depends_on:
water-db:
condition: service_started
environment:
- DB_USER=postgres
- DB_PASS=postgres
- DB_NAME=postgres
- DB_HOST=water-db
# profiles: ["init"]
# --------------------------------
water-flyway:
build:
context: sql
restart: on-failure
command: -connectRetries=60 migrate
environment:
- FLYWAY_EDITION=community
# Exclude Local Seed Data; Uncomment Line Below
# - FLYWAY_LOCATIONS=filesystem:/flyway/sql/common,filesystem:/flyway/sql/develop
# Include Local Seed Data; Uncomment Line Below (Comment Line Above)
- FLYWAY_LOCATIONS=filesystem:/flyway/sql/common,filesystem:/flyway/sql/develop,filesystem:/flyway/sql/local
- FLYWAY_PASSWORD=postgres
- FLYWAY_SCHEMAS=water
- FLYWAY_URL=jdbc:postgresql://water-db:5432/postgres
- FLYWAY_USER=postgres
depends_on:
water-db:
condition: service_started
water-tiger-data:
condition: service_completed_successfully
# --------------------------------
water-api:
build:
context: ./
container_name: water-api
restart: always
environment:
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- AWS_REGION=us-east-1
- AWS_DEFAULT_REGION=us-east-1
- AWS_S3_BUCKET=castle-data-develop
- AWS_S3_ENDPOINT=http://minio:9000
- AWS_S3_DISABLE_SSL=True
- AWS_S3_FORCE_PATH_STYLE=True
- AUTH_MOCKED=true
- APPLICATION_KEY=appkey
- WATER_DB_USER=water_user
- WATER_DB_PASS=water_pass
- WATER_DB_NAME=postgres
- WATER_DB_HOST=water-db
- WATER_DB_SSLMODE=disable
- DB_POOL_MAX_CONNS=10
- DB_POOL_MAX_CONN_IDLE_TIME=30m
- DB_POOL_MIN_CONNS=5
- PG_FEATURESERV_URL=http://water-featureserv:8080
- CHARTSERVER_URL=http://charts:3000
ports:
- '80:80'
depends_on:
charts:
condition: service_started
water-db:
condition: service_started
water-flyway:
condition: service_completed_successfully
water-tiger-data:
condition: service_completed_successfully
# --------------------------------
water-elasticmq:
image: softwaremill/elasticmq
container_name: water-elasticmq
volumes:
- ./elasticmq.conf:/opt/elasticmq.conf
ports:
- "9324:9324"
- "9325:9325"
restart: always
# --------------------------------
water-listener:
build:
context: listener
container_name: water-listener
environment:
- AWS_ACCESS_KEY_ID=x
- AWS_SECRET_ACCESS_KEY=x
- AWS_REGION=us-east-1
- WATER_DB_USER=water_user
- WATER_DB_PASS=water_pass
- WATER_DB_NAME=postgres
- WATER_DB_HOST=water-db
- WATER_DB_SSLMODE=disable
- WATER_ASYNC_ENGINE_GEOPROCESS=AWSSQS
- WATER_ASYNC_ENGINE_GEOPROCESS_TARGET=local/http://elasticmq:9324/queue/water-geoprocess
- WATER_MIN_RECONN=10s
- WATER_MAX_RECONN=1m
depends_on:
water-db:
condition: service_started
water-elasticmq:
condition: service_started
water-flyway:
condition: service_completed_successfully
restart: always
# --------------------------------
water-featureserv:
image: pramsey/pg_featureserv
container_name: water-featureserv
restart: always
environment:
- DATABASE_URL=postgres://postgres:postgres@water-db:5432/postgres
- PGFS_SERVER_HTTPPORT=8080
- PGFS_SERVER_HTTPSPORT=8443
- PGFS_SERVER_URLBASE=http://localhost/features
- PGFS_SERVER_BASEPATH=/features
- PGFS_SERVER_DEBUG=true
- PGFS_WEBSITE_BASEMAPURL=http://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png
depends_on:
water-db:
condition: service_started
# water-api:
# condition: service_started
# --------------------------------
# water-swagger-ui:
# image: swaggerapi/swagger-ui
# container_name: water-swagger-ui
# ports:
# - "8001:8080"
# volumes:
# - ./apidoc.yml:/usr/share/nginx/html/swagger/api.yaml
# environment:
# API_URL: swagger/api.yaml