X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5844c5bc2edf22e4d6a4316f887adf758584a008..d2fa510f82c2bc64fead53bba14deef72c771b81:/cookbooks/irc/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/irc/recipes/default.rb b/cookbooks/irc/recipes/default.rb index 238c17c8a..ef6332dce 100644 --- a/cookbooks/irc/recipes/default.rb +++ b/cookbooks/irc/recipes/default.rb @@ -18,30 +18,24 @@ # include_recipe "apache" +include_recipe "podman" + +docker_external_port = 8092 + +podman_service "irc.openstreetmap.org" do + description "Container service for irc.openstreetmap.org" + image "ghcr.io/openstreetmap/irc:latest" + ports docker_external_port => "8080" +end ssl_certificate "irc.openstreetmap.org" do domains ["irc.openstreetmap.org", "irc.osm.org"] notifies :reload, "service[apache2]" end -directory "/srv/irc.openstreetmap.org" do - owner "root" - group "root" - mode 0755 -end - -remote_directory "/srv/irc.openstreetmap.org/html" do - source "html" - owner "root" - group "root" - mode 0o755 - files_owner "root" - files_group "root" - files_mode 0o644 -end +apache_module "proxy_http" apache_site "irc.openstreetmap.org" do template "apache.erb" - directory "/srv/irc.openstreetmap.org/html" - variables :aliases => ["irc.osm.org"] + variables :docker_external_port => docker_external_port, :aliases => ["irc.osm.org"] end