{"id":15058953,"url":"https://github.com/acugis/opentileserver","last_synced_at":"2025-04-07T19:17:09.404Z","repository":{"id":48894819,"uuid":"47157688","full_name":"AcuGIS/OpenTileServer","owner":"AcuGIS","description":"This script is for building a basic tile server with OpenStreetMap data","archived":false,"fork":false,"pushed_at":"2023-08-09T09:48:48.000Z","size":7578,"stargazers_count":210,"open_issues_count":1,"forks_count":64,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-04-07T19:17:03.016Z","etag":null,"topics":["docker","docker-compose","mapping","openstreetmap","openstreetmap-data","tile-server"],"latest_commit_sha":null,"homepage":"https://www.acugis.com/opentileserver/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AcuGIS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-01T01:41:14.000Z","updated_at":"2025-03-06T10:49:11.000Z","dependencies_parsed_at":"2024-12-18T05:18:03.308Z","dependency_job_id":null,"html_url":"https://github.com/AcuGIS/OpenTileServer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcuGIS%2FOpenTileServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcuGIS%2FOpenTileServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcuGIS%2FOpenTileServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcuGIS%2FOpenTileServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AcuGIS","download_url":"https://codeload.github.com/AcuGIS/OpenTileServer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","mapping","openstreetmap","openstreetmap-data","tile-server"],"created_at":"2024-09-24T22:34:25.750Z","updated_at":"2025-04-07T19:17:09.369Z","avatar_url":"https://github.com/AcuGIS.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenStreetMap Server\n\n## Build an OpenStreetMap Server\n\n![OpenTileServer](docs/OpenStreetMap-Server.png)\n\n\n* Project page: https://www.acugis.com/opentileserver\n* Documentation: https://www.acugis.com/opentileserver/docs\n\n[![Documentation Status](https://readthedocs.org/projects/opentileserver/badge/?version=latest)](https://opentileserver.docs.acugis.com/en/latest/?badge=latest)\n\nInstallation Options\n\n### 1. [Script](https://github.com/AcuGIS/OpenTileServer/blob/master/README.md#1-script)\n### 2. [Docker Compose](https://github.com/AcuGIS/OpenTileServer/blob/master/README.md#2-install-using-docker-compose)\n\nThis script is for building a basic tile server with OpenStreetMap data.\n\n## 1.  Install Using Script\n\nFor demos to work, be sure your hostname is set properly.\n\nOn a clean Ubuntu 22 install.\n\n1. Get the script and make it executable:\n\n    wget https://raw.githubusercontent.com/AcuGIS/OpenTileServer/master/opentileserver-ubuntu-22.sh \u0026\u0026 chmod +x opentileserver-ubuntu-22.sh\n\n2. If using a non-Latin alphabet, ucomment line 24 below:\n\n    export LC_ALL=C      \n\n3.  Run the script\n\n### Running the script:\n\n    ./opentileserver-ubuntu-22.sh  [web|ssl] [bright|carto] pbf_url\n\n[web|ssl]: 'web' for http and 'ssl' for https.\n\n[bright|carto]: 'carto' for openstreetmap-carto or 'bright' for openstreetmap-bright\n\npbf_url: Complete PBF url from GeoFabrik (or other source)\n\n\n### Examples:\n\nLoad Delaware data with openstreetmap-carto style and no SSL:\n\n    ./opentileserver-ubuntu-22.sh web carto http://download.geofabrik.de/north-america/us/delaware-latest.osm.pbf \n\nLoad Bulgaria data with openstreetmap-bright style and SSL:\n\n    ./opentileserver-ubuntu-22.sh http://download.geofabrik.de/europe/bulgaria-latest.osm.pbf bright\n\nLoad South America data with openstreetmap-carto style and SSL:\n\n    ./opentileserver-ubuntu-22.sh ssl carto http://download.geofabrik.de/south-america-latest.osm.pbf\n\n\n### Using SSL:\n\nIf you select the ssl option and wish to use LetsEncrypt, be sure to do the following:\n\n1.  Check hostname is set properly.  You can set the hostname using hostnamectl as below:\n\n       hostnamectl set-hostname domain.com\n\n2.  Run the script, which will provision a dummy SSL certificate.\n\n3.  Once script completes, enable Python Certbot Apache plugin:\n\n       apt-get -y install python3-certbot-apache\n\n4.  Request a certificate using below and \n\n       certbot --apache --agree-tos --email hostmaster@domain.com --no-eff-email -d domain.com\n\n5. select the option \"2: Redirect - Make all requests redirect to secure HTTPS access\"\n   \n6. Restart Apache\n\n\n## 2. Install Using Docker Compose\n\nDockerized OpenTileServer\n\nFirst build the containers, then start PostgreSQL, renderd, and Apache. \n\n### Run\nClone OpenTileServer and change to the OpenTileServer/Docker directoy:\n\n    git clone https://github.com/AcuGIS/OpenTileServer.git\n    cd OpenTileServer/Docker\n    docker compose pull\n    docker compose up\n    \n### Add PBF File\n\n    $ docker ps (to get container id)\n    $ docker exec -it ${CONTAINER_ID} bash\n    $ root@${CONTAINER_ID}:/home/tile# ./osm_load.sh 'https://download.geofabrik.de/europe/andorra-latest.osm.pbf'\n    $ docker compose restart\n    \nYou can access PostgreSQL on 5432 and Apache 80\n\n\n## Welcome Page\n\nOnce installation completes, navigate to the IP or hostname of your server.\n\nYou should see a page as below:\n\n![OpenTileServer](docs/OpenStreetMap-Server.png)\n\n\n\n\n\nClick on both the OpenLayer and Leaflet Examples and check your installation is rendering\n\n[Produced by AcuGIS. We Make GIS Simple](https://www.acugis.com) \n\n[Cited, Inc. Wilmington, Delaware](https://citedcorp.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facugis%2Fopentileserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facugis%2Fopentileserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facugis%2Fopentileserver/lists"}