-
Notifications
You must be signed in to change notification settings - Fork 132
/
docker-compose.yml
60 lines (59 loc) · 1.68 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
version: '3'
volumes:
dbbackups:
postgis-data:
services:
mysqldb_retriever:
image: mysql:5.7
container_name: mysqldb_ret_container
environment:
MYSQL_USER: travis
MYSQL_PASSWORD: Password12!
MYSQL_ROOT_PASSWORD: Password12!
MYSQL_DATABASE: testdb_retriever
restart: on-failure
healthcheck:
test: "exit 0"
pgdb_retriever:
image: kartoza/postgis:latest
volumes:
- postgis-data:/var/lib/postgresql
- dbbackups:/backups
container_name: pgdb_ret_container
environment:
# To create multiple database you can add coma separated databases eg gis,data
- POSTGRES_DB=testdb_retriever
- POSTGRES_USER=postgres
- POSTGRES_PASS=Password12!
- ALLOW_IP_RANGE=0.0.0.0/0
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,postgis_raster,pgrouting
ports:
- 25432:5432
restart: on-failure
healthcheck:
test: "exit 0"
python_retriever:
container_name: ret_container
image: ret_image
command: bash -c "python --version"
environment:
# Handle tzdata install see: https://serverfault.com/a/975084
TZ: America/New_York
DEBIAN_FRONTEND: noninteractive
# If IN_DOCKER is set, use service names as hosts(travis)
# Otherwise use localhost (local tests)
"IN_DOCKER" : "true"
"PGUSER" : "postgres"
"PGPASSWORD" : "Password12!"
"PGDATABASE" : "testdb_retriever"
"PGPORT" : "5432"
"PGHOST" : "pgdb_retriever"
restart: on-failure
build: ./docker
depends_on:
mysqldb_retriever:
condition: service_healthy
pgdb_retriever:
condition: service_healthy
ports:
- 5001:80