docker-compose.yml 864 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: '3.2'
  2. services:
  3. frontend:
  4. build: frontend
  5. ports:
  6. - 20080:80
  7. volumes:
  8. # Re-use local composer cache via host-volume
  9. - ~/.composer-docker/cache:/root/.composer/cache:delegated
  10. # Mount source-code for development
  11. - ./:/app
  12. backend:
  13. build: backend
  14. ports:
  15. - 21080:80
  16. volumes:
  17. # Re-use local composer cache via host-volume
  18. - ~/.composer-docker/cache:/root/.composer/cache:delegated
  19. # Mount source-code for development
  20. - ./:/app
  21. mysql:
  22. image: mysql:5.7
  23. environment:
  24. - MYSQL_ROOT_PASSWORD=verysecret
  25. - MYSQL_DATABASE=yii2advanced
  26. - MYSQL_USER=yii2advanced
  27. - MYSQL_PASSWORD=secret
  28. #pgsql:
  29. # image: postgres:9.5
  30. # environment:
  31. # - POSTGRES_DB=yii2advanced
  32. # - POSTGRES_USER=yii2advanced
  33. # - POSTGRES_PASSWORD=secret