mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Add docker-compose scripts
This commit is contained in:
parent
f9c0cda9f9
commit
a806023a55
27
.ci/ogc/docker-compose.yml
Normal file
27
.ci/ogc/docker-compose.yml
Normal file
@ -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
|
31
.ci/ogc/nginx.conf
Normal file
31
.ci/ogc/nginx.conf
Normal file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user