-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-production.yml
79 lines (76 loc) · 1.6 KB
/
docker-compose-production.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
version: '3'
networks:
indrz-net:
volumes:
indrz-db:
indrz-geoserver:
indrz-static:
indrz-media:
indrz-www:
services:
# POSTGRES DB
indrz_db:
hostname: indrz_db
container_name: indrz_db
image: kartoza/postgis:13.0
volumes:
- indrz-db:/var/lib/postgresql
ports:
- 5434:5432
networks:
- indrz-net
env_file:
- .env
restart: always
# healthcheck:
# test: "exit 0"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# GEOSERVER
geoserver:
hostname: geoserver
container_name: geoserver
image: indrz/geoserver:2.18.0
user: "1000"
build:
context: .
dockerfile: devops/docker/local/geoserver/Dockerfile
volumes:
- indrz-geoserver:/opt/geoserver/data_dir
ports:
- 8600:8080
restart: on-failure
env_file:
- .env
depends_on:
- indrz_db
networks:
- indrz-net
healthcheck:
test: curl --fail -s http://localhost:8600/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
# INDRZ BACK-END
indrz_api:
container_name: indrz_api
hostname: indrz_api
image: indrz/indrz-api:latest
build:
context: .
dockerfile: devops/docker/local/indrz/Dockerfile
ports:
- 8000:8000
networks:
- indrz-net
depends_on:
- indrz_db
volumes:
- indrz-media:/opt/data/media
- indrz-static:/opt/data/static
restart: always
env_file:
- .env