web: image: nginx:alpine volumes: - ./public:/usr/share/nginx/html - ./conf.d:/etc/nginx/conf.d ports: - "8080:80" links: - php restart: always environment: - NGINX_HOST=0.0.0.0 - NGINX_PORT=80 php: image: php:7-fpm-alpine volumes: - ./public:/usr/share/nginx/html