<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>https://www.binefa.com/index.php?action=history&amp;feed=atom&amp;title=Servidor_intermediari_invers</id>
	<title>Servidor intermediari invers - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="https://www.binefa.com/index.php?action=history&amp;feed=atom&amp;title=Servidor_intermediari_invers"/>
	<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Servidor_intermediari_invers&amp;action=history"/>
	<updated>2026-04-08T02:31:16Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.binefa.com/index.php?title=Servidor_intermediari_invers&amp;diff=7155&amp;oldid=prev</id>
		<title>Jordi Binefa: /* docker-compose.yml */</title>
		<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Servidor_intermediari_invers&amp;diff=7155&amp;oldid=prev"/>
		<updated>2023-09-02T17:40:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;docker-compose.yml&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 17:40, 2 set 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Línia 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Abans de posar en marxa el ''docker'' cal crea la xarxa que connecta el ''reverse-proxy'' amb ''letsencrypt'':&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Abans de posar en marxa el ''docker'' cal crea la xarxa que connecta el ''reverse-proxy'' amb ''letsencrypt'':&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  docker network create net&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  docker network create net&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Podeu veure quins ''dockers'' són connectats a la xarxa interna:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; docker network inspect net&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Un cop heu copiat l'arxiu ''docker-compose.yml'' a una carpeta del sistema:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Un cop heu copiat l'arxiu ''docker-compose.yml'' a una carpeta del sistema:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  docker-compose up -d&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  docker-compose up -d&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_binefa_com:diff::1.12:old-7154:rev-7155 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jordi Binefa</name></author>
		
	</entry>
	<entry>
		<id>https://www.binefa.com/index.php?title=Servidor_intermediari_invers&amp;diff=7154&amp;oldid=prev</id>
		<title>Jordi Binefa: /* docker-compose.yml */</title>
		<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Servidor_intermediari_invers&amp;diff=7154&amp;oldid=prev"/>
		<updated>2023-08-28T11:44:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;docker-compose.yml&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 11:44, 28 ago 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;Línia 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= docker-compose.yml =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= docker-compose.yml =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Abans de posar en marxa el ''docker'' cal crea la xarxa que connecta el ''reverse-proxy'' amb ''letsencrypt'':&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; docker network create net&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Un cop heu copiat l'arxiu ''docker-compose.yml'' a una carpeta del sistema:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; docker-compose up -d&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'''docker-compose.yml''':&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  version: &amp;quot;3.3&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  version: &amp;quot;3.3&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_binefa_com:diff::1.12:old-3276:rev-7154 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jordi Binefa</name></author>
		
	</entry>
	<entry>
		<id>https://www.binefa.com/index.php?title=Servidor_intermediari_invers&amp;diff=3276&amp;oldid=prev</id>
		<title>Jordi Binefa: Es crea la pàgina amb «[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]  = Ús del docker = Crida a un servidor ''n...».</title>
		<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Servidor_intermediari_invers&amp;diff=3276&amp;oldid=prev"/>
		<updated>2021-08-24T11:13:34Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]  = Ús del docker = Crida a un servidor &amp;#039;&amp;#039;n...».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
= Ús del docker =&lt;br /&gt;
Crida a un servidor ''nginx'' ([https://sub.things.cat/ https://sub.things.cat]):&lt;br /&gt;
 docker run --rm --name ''nginx-dummy'' -e VIRTUAL_HOST=sub.things.cat -e LETSENCRYPT_HOST=sub.things.cat -e VIRTUAL_PORT=80 --network net -d nginx:latest&lt;br /&gt;
&lt;br /&gt;
Crida a un servidor ''NextCloud'' ([https://sub0.things.cat/ https://sub0.things.cat/]):&lt;br /&gt;
 docker run --name ''nextcloud0'' --network net -e VIRTUAL_HOST=&amp;quot;sub0.things.cat&amp;quot; -e LETSENCRYPT_HOST=&amp;quot;sub0.things.cat&amp;quot; -d nextcloud:19.0.2&lt;br /&gt;
&lt;br /&gt;
Accés a la consola '''bash''' del docker ''nextcloud0'':&lt;br /&gt;
 docker exec -it ''nextcloud0'' bash -l&lt;br /&gt;
&lt;br /&gt;
Per a obtenir la informació disponible del docker en funcionament:&lt;br /&gt;
 docker inspect ''nextcloud0''&lt;br /&gt;
&lt;br /&gt;
Per a obtenir la '''IP interna''' del docker en funcionament:&lt;br /&gt;
 docker inspect ''nextcloud0'' | grep IPAddress&lt;br /&gt;
&lt;br /&gt;
= docker-compose.yml =&lt;br /&gt;
 version: &amp;quot;3.3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 services:&lt;br /&gt;
    reverse-proxy:&lt;br /&gt;
        image: jwilder/nginx-proxy:latest&lt;br /&gt;
        container_name: &amp;quot;reverse-proxy&amp;quot;&lt;br /&gt;
        volumes:&lt;br /&gt;
            - &amp;quot;html:/usr/share/nginx/html&amp;quot;&lt;br /&gt;
            - &amp;quot;dhparam:/etc/nginx/dhparam&amp;quot;&lt;br /&gt;
            - &amp;quot;vhost:/etc/nginx/vhost.d&amp;quot;&lt;br /&gt;
            - &amp;quot;certs:/etc/nginx/certs&amp;quot;&lt;br /&gt;
            - &amp;quot;/run/docker.sock:/tmp/docker.sock:ro&amp;quot;&lt;br /&gt;
        restart: &amp;quot;always&amp;quot;&lt;br /&gt;
        networks: &lt;br /&gt;
            - &amp;quot;net&amp;quot;&lt;br /&gt;
        ports:&lt;br /&gt;
            - &amp;quot;80:80&amp;quot;&lt;br /&gt;
            - &amp;quot;443:443&amp;quot;&lt;br /&gt;
    letsencrypt:&lt;br /&gt;
        image: jrcs/letsencrypt-nginx-proxy-companion:latest&lt;br /&gt;
        container_name: &amp;quot;letsencrypt-helper&amp;quot;&lt;br /&gt;
        volumes:&lt;br /&gt;
            - &amp;quot;html:/usr/share/nginx/html&amp;quot;&lt;br /&gt;
            - &amp;quot;dhparam:/etc/nginx/dhparam&amp;quot;&lt;br /&gt;
            - &amp;quot;vhost:/etc/nginx/vhost.d&amp;quot;&lt;br /&gt;
            - &amp;quot;certs:/etc/nginx/certs&amp;quot;&lt;br /&gt;
            - &amp;quot;/run/docker.sock:/var/run/docker.sock:ro&amp;quot;&lt;br /&gt;
        environment:&lt;br /&gt;
            NGINX_PROXY_CONTAINER: &amp;quot;reverse-proxy&amp;quot;&lt;br /&gt;
            DEFAULT_EMAIL: &amp;quot;un_correu@qualsevol.cat&amp;quot;&lt;br /&gt;
        restart: &amp;quot;always&amp;quot;&lt;br /&gt;
        depends_on:&lt;br /&gt;
            - &amp;quot;reverse-proxy&amp;quot;&lt;br /&gt;
        networks: &lt;br /&gt;
            - &amp;quot;net&amp;quot;&lt;br /&gt;
 volumes:&lt;br /&gt;
  certs:&lt;br /&gt;
  html:&lt;br /&gt;
  vhost:&lt;br /&gt;
  dhparam:&lt;br /&gt;
 &lt;br /&gt;
 networks:&lt;br /&gt;
  net:&lt;br /&gt;
    external: true&lt;/div&gt;</summary>
		<author><name>Jordi Binefa</name></author>
		
	</entry>
</feed>