Skip to content
Permalink
Browse files

Add docker-compose scripts

  • Loading branch information
pblottiere authored and nyalldawson committed Sep 10, 2020
1 parent f9c0cda commit a806023a55ddc9c727e7b694fbd9801f5f000db4
Showing with 59 additions and 1 deletion.
  1. +27 −0 .ci/ogc/docker-compose.yml
  2. +31 −0 .ci/ogc/nginx.conf
  3. +1 −1 .ci/ogc/qgis_mapserv.sh
@@ -0,0 +1,27 @@
version: '3'
services:

nginx:
image: nginx:1.13
container_name: qgis_server_nginx
ports:
- 8089:80
networks:
- qgis
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- qgis-server

qgis-server:
image: qgis_server_deps
container_name: qgis_server_deps
volumes:
- ./../../:/usr/src/qgis/
networks:
- qgis
privileged: true

networks:
qgis:
driver: bridge
@@ -0,0 +1,31 @@
server {
listen 80 default_server;
listen [::]:80 default_server;

root /var/www/html;

# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;

server_name _;

location / {
try_files $uri $uri/ =404;
}

location /qgisserver {
fastcgi_pass qgis-server:5555;
add_header Access-Control-Allow-Origin *;
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,X-Requested-With';
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param SERVER_PORT 80;
fastcgi_param SERVER_NAME $server_addr;
}
}
@@ -4,4 +4,4 @@ export QGIS_SERVER_LOG_FILE=/var/log/qgisserver.log
export QGIS_SERVER_LOG_LEVEL=0
export QGIS_PREFIX_PATH=/usr/local/

exec /usr/bin/spawn-fcgi -n -p 5555 /usr/local/bin/qgis_mapserv.fcgi
exec /usr/bin/spawn-fcgi -n -p 5555 /usr/src/qgis/build/output/bin/qgis_mapserv.fcgi

0 comments on commit a806023

Please sign in to comment.
You can’t perform that action at this time.