Differences

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

Link to this comparison view

Both sides previous revision Previous revision
docker_compose_como_um_servico_do_systemd [2019/10/10 14:48]
Douglas Quintiliano dos Santos [Cleanup para o Docker]
docker_compose_como_um_servico_do_systemd [2019/10/10 14:56] (current)
Douglas Quintiliano dos Santos [Criando mais serviços para o Systemd]
Line 303: Line 303:
  
 Agora crie o seu arquivo docker-compose.yml dentro do diretório /​srv/​docker/​compose/​drupal Agora crie o seu arquivo docker-compose.yml dentro do diretório /​srv/​docker/​compose/​drupal
 +<sxh yaml>
 +vim /​srv/​docker/​compose/​drupal/​docker-compose.yml
 +version: '​3'​
 +services:
 +  drupal:
 +    image: drupal:​8-apache
 +    ports:
 +      - "​8080:​80"​
 +    volumes:
 +      - drupal-modules:/​var/​www/​html/​modules
 +      - drupal-profiles:/​var/​www/​html/​profiles
 +      - drupal-themes:/​var/​www/​html/​themes
 +      - drupal-sites:/​var/​www/​html/​sites
 +    networks:
 +      - net
 +    restart: always
 +  postgres:
 +    image: postgres:10
 +    environment:​
 +      POSTGRES_PASSWORD:​ example
 +    volumes:
 +      - db_data:/​var/​lib/​postgresql/​data
 +    networks:
 +      - net
 +    restart: always
 +volumes:
 +  drupal-modules:​
 +  drupal-profiles:​
 +  drupal-sites:​
 +  drupal-themes:​
 +  db_data:
 +networks:
 +  net:
 +</​sxh>​
  
 Para habilitar o novo serviço Para habilitar o novo serviço
Line 313: Line 347:
 systemctl start docker-compose@drupal systemctl start docker-compose@drupal
 </​sxh>​ </​sxh>​
 +
 +Agora já podemos configurar o Drupal em http://​10.3.0.91:​8080
  
 ====== Cleanup para o Docker ====== ====== Cleanup para o Docker ======