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: build: ./php/ volumes: - ./public:/usr/share/nginx/html restart: always