This repository was archived by the owner on Apr 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
72 lines (66 loc) · 1.51 KB
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
version: '3'
services:
frontend:
image: nginx:stable-alpine
ports:
- '80:80'
volumes:
- ./modules/frontend:/usr/share/nginx/html
restart: unless-stopped
postgis:
image: mdillon/postgis:10-alpine
ports:
- 5432:5432
volumes:
- ./var/postgis_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4:3.5
links:
- postgis
ports:
- 8083:80
environment:
- PGADMIN_DEFAULT_EMAIL
- PGADMIN_DEFAULT_PASSWORD
restart: unless-stopped
geoserver:
image: kartoza/geoserver:2.13.0
ports:
- 9090:8080
volumes:
- ./var/geoserver_data:/opt/geoserver/data_dir
- ./docker/geoserver/web.xml:/usr/local/tomcat/conf/web.xml
restart: on-failure
depends_on:
- postgis
healthcheck:
test: curl --fail -s http://localhost:8080/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
restart: unless-stopped
api:
image: nginx:stable-alpine
ports:
- 8081:80
links:
- php
- postgis
volumes:
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
- ./modules/api:/app
restart: unless-stopped
php:
build:
context: ./docker/php
dockerfile: Dockerfile.prod
image: php:simtanah-prod
ports:
- 9000:9000
volumes:
- ./modules/api:/app
- ./docker/php/php-override.ini:/usr/local/etc/php/conf.d/php-override.ini