Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. version: '3'
  2. services:
  3. web:
  4. image: nginx
  5. volumes:
  6. - ./web/api.conf:/etc/nginx/conf.d/default.conf
  7. ports:
  8. - "8080:80"
  9. depends_on:
  10. - api
  11.  
  12. api:
  13. image: php:7-fpm
  14. user: "${PUID}:${PGID}"
  15. volumes:
  16. - ./api:/var/www
  17. depends_on:
  18. - db
  19.  
  20. db:
  21. image: mysql:5.7
  22. user: "${PUID}:${PGID}"
  23. ports:
  24. - 3306:3306
  25. volumes:
  26. - "./db/:/var/lib/mysql"
  27. environment:
  28. MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
  29. MYSQL_DATABASE: ${DB_NAME}
  30. depends_on:
  31. - workspace
  32.  
  33. workspace:
  34. build:
  35. context: ./workspace
  36. args:
  37. - PUID=${PUID}
  38. - PGID=${PGID}
  39. tty: true
  40. command: composer install --prefer-dist
  41. volumes:
  42. - ./api:/var/www
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement