-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (64 loc) · 2.13 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
62
63
64
services:
geoserver:
image: kartoza/geoserver
container_name: ${GEO_NAME}
restart: always
env_file:
- ".env"
links:
- postgresdb
ports:
- "38080:8080"
volumes:
- "./data/geoserver/data:/geoserver_data/data"
- "//var/run/docker.sock:/var/run/docker.sock"
- "./apps/tomcat/manager/context.xml:/usr/local/tomcat/webapps/manager/META-INF/context.xml"
- "./apps/tomcat/conf/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml"
- "./apps/tomcat/conf/context.xml:/usr/local/tomcat/conf/context.xml"
environment:
# - DOCKERHOST
# - GEONODE_HOST_IP
# - PUBLIC_PORT=80
# - DOCKER_HOST_IP
- DJANGO_URL=http://localhost/
depends_on:
- postgresdb
postgresdb:
image: pgrouting/pgrouting:${PG_VERSION}
container_name: ${PG_NAME}
env_file:
- ".env"
environment:
POSTGRES_PASSWORD: ${PG_PASSWORD}
ports:
- '35432:5432'
volumes:
- "./data/postgresql/data:/var/lib/postgresql/data"
web:
image: nginx:alpine
container_name: ${NGINX_NAME}
volumes:
- "./apps/ssl:/etc/ssl"
- "./html:/var/www/html"
- "./apps/nginx/default.template.conf:/etc/nginx/conf.d/default.template"
ports:
- "380:80"
- "381:81"
- "3443:443"
stdin_open: true
tty: true
environment:
- NGINX_HOST=${NGINX_HOST}
- GEO_NAME=${GEO_NAME}
command: /bin/sh -c "envsubst '$$NGINX_HOST,$$GEO_NAME' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
restart: always
depends_on:
- php
- postgresdb
php:
image: nanoninja/php-fpm:${PHP_VERSION}
container_name: ${PHP_NAME}
restart: always
volumes:
- "./apps/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./html:/var/www/html"