-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (35 loc) · 1.09 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
version: '3.7'
services:
# Docker-compose for testing postgis geopetl tests against postgresql with postgis
# Postgres database with postgis configured
postgis:
image: mdillon/postgis:11
container_name: postgis
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD
- POSTGRES_DB=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
# Postgres database with Esri SDE enabled on a database, "geodatabase_testing".
# docker will pull the image from ecr
postgres_sde:
image: 880708401960.dkr.ecr.us-east-1.amazonaws.com/postgresql-sde:point-v4
container_name: postgres-sde
geopetl:
depends_on:
- 'postgis'
- 'postgres_sde'
build:
context: .
dockerfile: geopetl_Dockerfile
container_name: geopetl
# Pass connection parameters for both databases to geopetl
# so our pytest scripts can connect to both.
environment:
- POSTGIS_HOST=postgis
- POSTGIS_USER=postgres
- POSTGIS_DB=postgres
- POSTGRES_PASSWORD
- SDE_HOST=postgres-sde
- SDE_USER=test_user
- SDE_DB=geodatabase_testing