Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docker_com_multiplos_container_de_websites_na_porta_80 [2019/10/10 18:44]
Douglas Quintiliano dos Santos [Configurando o Drupal]
docker_com_multiplos_container_de_websites_na_porta_80 [2019/10/10 18:48] (current)
Douglas Quintiliano dos Santos [Habilitando o serviço no Systemd]
Line 418: Line 418:
  
 ====== Habilitando o serviço no Systemd ====== ====== Habilitando o serviço no Systemd ======
 +
 +Agora vamos parar os serviços do Docker
 +<sxh bash>
 +cd /srv/docker/compose/proxy_reverso && docker-compose down
 +</sxh>
  
 Agora vamos habilitar o serviço do Nginx para o serviço do Docker Compose Agora vamos habilitar o serviço do Nginx para o serviço do Docker Compose
Line 424: Line 429:
 </sxh> </sxh>
  
-Agora vamos subir o serviço+Para subir o serviços podemos executar
 <sxh bash> <sxh bash>
 systemctl start docker-compose@reverse_proxy systemctl start docker-compose@reverse_proxy
 +</sxh>
 +
 +Agora podemos consultar o status dos nossos serviços
 +<sxh bash>
 +systemctl status docker-compose@reverse_proxy  -l
 +● docker-compose@reverse_proxy.service - reverse_proxy service with docker compose
 +   Loaded: loaded (/etc/systemd/system/docker-compose@.service; enabled; vendor preset: disabled)
 +   Active: active (running) since Qui 2019-10-10 15:47:55 -03; 9s ago
 +  Process: 19728 ExecStop=/usr/bin/docker-compose down (code=exited, status=200/CHDIR)
 + Main PID: 19749 (docker-compose)
 +   CGroup: /system.slice/system-docker\x2dcompose.slice/docker-compose@reverse_proxy.service
 +           ├─19749 /usr/bin/docker-compose up
 +           └─19750 /usr/bin/docker-compose up
 +
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: db-drupal       | 2019-10-10 18:47:57.821 UTC [22] LOG:  database system was shut down at 2019-10-10 18:45:23 UTC
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: db-drupal       | 2019-10-10 18:47:57.834 UTC [1] LOG:  database system is ready to accept connections
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: drupal-web      | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.48.4. Set the 'ServerName' directive globally to suppress this message
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: drupal-web      | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.48.4. Set the 'ServerName' directive globally to suppress this message
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: drupal-web      | [Thu Oct 10 18:47:59.018666 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.10 configured -- resuming normal operations
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: drupal-web      | [Thu Oct 10 18:47:59.018759 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: wp-web          | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.32.4. Set the 'ServerName' directive globally to suppress this message
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: wp-web          | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.32.4. Set the 'ServerName' directive globally to suppress this message
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: wp-web          | [Thu Oct 10 18:47:59.677423 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.3.10 configured -- resuming normal operations
 +Out 10 15:47:59 centos7.dqs.local docker-compose[19749]: wp-web          | [Thu Oct 10 18:47:59.677504 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
 </sxh> </sxh>
  
Print/export
QR Code
QR Code docker_com_multiplos_container_de_websites_na_porta_80 (generated for current page)