Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. version: "3.3"
  2. services:
  3. mysql:
  4. container_name: mysql
  5. image: mysql:5.7
  6. environment:
  7. MYSQL_ROOT_PASSWORD: SENHA_AQUI
  8. MYSQL_DATABASE: webapp
  9. MYSQL_USER: root
  10. MYSQL_PASSWORD: senha_aqui
  11. restart: always
  12. ports:
  13. - 3306:3306
  14.  
  15. web:
  16. container_name: web
  17. image: web_dev
  18. build:
  19. context: .
  20. dockerfile: Dockerfile
  21. volumes:
  22. - ./htdocs/:/var/www
  23. - ./apache/:/etc/apache2/sites-available/
  24. working_dir: /var/www
  25. depends_on:
  26. - mysql
  27. links:
  28. - mysql
  29. restart: always
  30. ports:
  31. - 80:80
  32.  
  33. FROM php:7.1-apache
  34.  
  35. MAINTAINER Fabio J L Ferreira <fabiojaniolima@gmail.com>
  36.  
  37. RUN apt-get update && apt-get install -y curl unzip git npm && curl -sL https://deb.nodesource.com/setup_6.x | bash - && apt-get install -y nodejs
  38.  
  39. COPY php.ini /usr/local/etc/php/
  40.  
  41. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
  42.  
  43. RUN rm -rf /var/lib/apt/lists/* /tmp/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement