Running docker-compose up -d does not start the web container. But if you run docker-compose up -d again, it will be executed. That is, it does not run not the first time, what could be the problem? (screenshots and docker-compose.yml file below)
version: '3' services: web: image: nginx ports: - "8000:80" volumes: - ./:/var/www/html - ./site.conf:/etc/nginx/conf.d/default.conf php: build: . volumes: - ./:/var/www/html links: - postgres - redis redis: image: redis ports: - "6379:6379" postgres: image: postgres ports: - "5432:5432" 