-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 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
61
services:
poly:
build: .
environment:
- "PG_CONNECTION=PG: host=polypostgis port=5432 dbname=postgres user=postgres password=PoLyPostGRES"
- "MONGO_CONNECTION=mongodb://mongopoly:27017"
- "REGIAO=/data/shape/regions_v05_12_2023.shp"
- "PASTURE=pasture_col9"
- "VIGOR=pasture_vigor_col9"
- "PASTURE_FILES=/data/pasture_col9/pasture_br_Y*_COL9_atlas.tif"
- "PASTURE_PREFIX=/data/pasture_col9/pasture_br_Y"
- "PASTURE_SUFIX=_COL9_atlas.tif"
- "VIGOR_FILES=/data/pasture_vigor_col9/cvp_pasture_br_LAPIG_Y*_ATLAS.tif"
- "VIGOR_PREFIX=/data/pasture_vigor_col9/cvp_pasture_br_LAPIG_Y"
- "VIGOR_SUFIX=_ATLAS.tif"
stdin_open: true # Manter o stdin aberto
tty: true # Alocar um terminal
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- poly_network
polypostgis:
hostname: polypostgis
container_name: polypostgis
image: postgis/postgis:latest
shm_size: 8g
ports:
- "5440:5432"
environment:
- "POSTGRES_PASSWORD=PoLyPostGRES"
- "POSTGRES_HOST_AUTH_METHOD=password"
restart: on-failure
volumes:
- postgis-data:/var/lib/postgresql/data
healthcheck:
test: curl --fail -s http://127.0.0.1:5432/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
- poly_network
mongopoly:
image: mongo:6-jammy
hostname: mongopoly
ports:
- "27020:27017"
volumes:
- dbdata6:/data/db
networks:
- poly_network
networks:
poly_network:
external: true
driver: bridge
volumes:
postgis-data:
dbdata6: