Guest User

Untitled

a guest
Nov 30th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. version: '3'
  2. services:
  3. php:
  4. image: php:fpm
  5. volumes:
  6. - ./code:/code
  7. web:
  8. image: nginx
  9. ports:
  10. - "8080:80"
  11. volumes:
  12. - ./code:/code
  13. - ./nginx/app.conf:/etc/nginx/conf.d/app.conf
  14. - ./server_logs:/var/log/nginx
  15. environment:
  16. - DB_HOST=db
  17. - DB_PORT=3306
  18. - DB_DATABASE=the_db
  19. - DB_USERNAME=root
  20. - DB_PASSWORD=TheMegaPassword
  21. db:
  22. image: mysql
  23. environment:
  24. - MYSQL_ROOT_PASSWORD=TheMegaPassword
  25. - MYSQL_DATABASE=the_db
  26. volumes:
  27. - ./db_data:/var/lib/mysql
Add Comment
Please, Sign In to add comment