forked from geosolutions-it/MapStore2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.28 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
version: "3.8"
networks:
mapstore-network:
driver: bridge
services:
postgres:
build:
context: ./docker/postgres/
image: geosolutions-mapstore/postgis
container_name: postgres
restart: on-failure
healthcheck:
test: /usr/bin/pg_isready -U postgres
interval: 5s
timeout: 10s
retries: 120
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: geostore
volumes:
- pg_data:${PGDATA:-/var/lib/postgresql/data}:rw
ports:
- 5432
networks:
- mapstore-network
mapstore:
build:
context: .
dockerfile: Dockerfile
args:
OVR: "geostore-datasource-ovr.properties"
MAPSTORE_WEBAPP_SRC: "https://github.com/geosolutions-it/MapStore2/releases/latest/download/mapstore.war"
container_name: mapstore
command: [ "wait-for-postgres", "postgres", "5432", "postgres", "postgres", "catalina.sh", "run" ]
depends_on:
- postgres
ports:
- 8080
networks:
- mapstore-network
proxy:
image: nginx
container_name: proxy
volumes:
- ./docker/mapstore.conf:/etc/nginx/conf.d/default.conf:rw
ports:
- 80:80
depends_on:
- mapstore
networks:
- mapstore-network
volumes:
pg_data: