Guest User

Untitled

a guest
Jan 20th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. version: '3'
  2. services:
  3. db:
  4. image: mariadb:latest
  5. container_name: mariadb
  6. restart: always
  7. volumes:
  8. - ./mysql/initdb/:/docker-entrypoint-initdb.d
  9. - ./mysql/data/:/var/lib/mysql
  10. environment:
  11. - MYSQL_ROOT_PASSWORD=root-pwd
  12. - MYSQL_DATABASE=appdb
  13. - MYSQL_USER=appuser
  14. - MYSQL_PASSWORD=user-pwd
  15. php:
  16. image: php:fpm-alpine
  17. container_name: php
  18. restart: always
  19. volumes:
  20. - ./www/:/var/www/html
  21. expose:
  22. - "9000"
  23. nginx:
  24. image: nginx:alpine
  25. container_name: nginx
  26. restart: always
  27. volumes:
  28. - ./nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro
  29. - ./nginx/conf.d:/etc/nginx/conf.d:ro
  30. - ./www:/var/www/html
  31. ports:
  32. - "80:80"
  33. pma:
  34. image: phpmyadmin/phpmyadmin
  35. container_name: phpmyadmin
  36. restart: always
  37. ports:
  38. - "8080:80"
Add Comment
Please, Sign In to add comment