X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a92d5e4c564dbef801efbe791c2e6200f8c5967e..6ea6b971998fa1e2eff2c737c7de9092613ecc7e:/cookbooks/stateofthemap/recipes/container.rb diff --git a/cookbooks/stateofthemap/recipes/container.rb b/cookbooks/stateofthemap/recipes/container.rb index b5a7640ac..5a7de8d52 100644 --- a/cookbooks/stateofthemap/recipes/container.rb +++ b/cookbooks/stateofthemap/recipes/container.rb @@ -22,8 +22,28 @@ include_recipe "podman" apache_module "proxy_http" +docker_external_port = 8096 + +podman_service "www.stateofthemap.org" do + description "Container service for www.stateofthemap.org" + image "ghcr.io/openstreetmap/stateofthemap-website:latest" + ports docker_external_port => "8080" +end + +ssl_certificate "stateofthemap.org" do + domains ["stateofthemap.org", "www.stateofthemap.org", + "stateofthemap.com", "www.stateofthemap.com", + "sotm.org", "www.sotm.org"] + notifies :reload, "service[apache2]" +end + +apache_site "stateofthemap.org" do + template "apache.container.erb" + variables :docker_external_port => docker_external_port, :aliases => ["www.stateofthemap.org", "stateofthemap.com", "www.stateofthemap.com", "sotm.org", "www.sotm.org"] +end + %w[2013 2016 2017 2018 2019 2020 2021 2022].each do |year| - docker_external_port = 6080 + year.to_i # 8093+ + docker_external_port = 6180 + year.to_i # 8193+ podman_service "#{year}.stateofthemap.org" do description "Container service for #{year}.stateofthemap.org"