docker-compose.yml 287 B

12345678910111213141516
  1. version: '2'
  2. services:
  3. nginx:
  4. image: nginx:latest
  5. volumes:
  6. - ./app.conf:/etc/nginx/conf.d/app.conf
  7. - ./php_testapp:/var/www/html
  8. ports:
  9. - "8080:80"
  10. php-fpm:
  11. build: .
  12. volumes:
  13. - ./php_testapp:/var/www/html
  14. ports:
  15. - "2222:22"