-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.11 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
version: "3"
networks:
geoserver-network:
driver: bridge
services:
postgres:
image: postgis/postgis
container_name: postgres
restart: on-failure
healthcheck:
test: /usr/bin/pg_isready -U postgres
interval: 5s
timeout: 10s
retries: 120
ports:
- 5432
env_file:
- ./postgres/postgres.env
volumes:
- pg_data:${PGDATA:-/var/lib/postgresql/data}:rw
- ./postgres/01-init-user.sh:/docker-entrypoint-initdb.d/01-init-user.sh
networks:
- geoserver-network
geoserver:
build:
context: .
dockerfile: ./Dockerfile
args:
GEOSERVER_WEBAPP_SRC: "https://build.geoserver.org/geoserver/main/geoserver-main-latest-war.zip"
container_name: geoserver
depends_on:
postgres:
condition: service_healthy
ports:
- 8080
networks:
- geoserver-network
proxy:
image: nginx
container_name: proxy
volumes:
- ./geoserver.conf:/etc/nginx/conf.d/default.conf:rw
ports:
- 80:80
depends_on:
- geoserver
networks:
- geoserver-network
volumes:
pg_data: