forked from ign-poc-extraction-pcrs/diffusion_lidar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 1.69 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
version: '3'
services:
demo-lidarhd-classe:
container_name: demo-lidarhd-classe
build:
context: "."
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
environment:
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTPS_PROXY}
- ACCESS_KEY=${ACCESS_KEY}
- SECRET_KEY=${SECRET_KEY}
- BUCKET=${BUCKET}
- ENDPOINT_URL=${ENDPOINT}
- REGION_NAME=${REGION}
- HOST_SERVEUR=${HOST_SERVEUR}
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
- PGPORT=${PGPORT}
- HOST=${PGHOST}
ports:
- '5000:5000'
restart: on-failure
depends_on:
db:
condition: service_healthy
db:
image: kartoza/postgis:15-3.3
# volumes:
# - postgis-data:/var/lib/postgresql
# - dbbackups:/backups
environment:
# If you need to create multiple database you can add coma separated databases eg gis,data
- POSTGRES_DB=${DATABASE}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASS=${POSTGRES_PASSWORD}
- ALLOW_IP_RANGE=0.0.0.0/0
# Add extensions you need to be enabled by default in the DB. Default are the five specified below
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,postgis_raster,pgrouting
- RUN_AS_ROOT=true
ports:
- "5432"
restart: on-failure
healthcheck:
test: "PGPASSWORD=$POSTGRES_PASSWORD pg_isready -h 127.0.0.1 -U $POSTGRES_USER -d $DATABASE"
interval: 10s
timeout: 10s
retries: 4
adminer:
image: adminer
restart: always
depends_on:
db:
condition: service_healthy
ports:
- 8080:8080