Hard
What are the errors in the docker-compose.yml
file?
version: '3'
services:
web:
build: ./web
ports:
- "8080:80"
networks:
- frontend
depends_on:
- app
app:
build: ./app
ports:
- "8081:80"
networks:
- backend
volumes:
- app-data:/var/lib/app-data
environment:
- APP_MODE=production
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
app-data:
Author: AxelStatus: PublishedQuestion passed 369 times
Edit
6
Community EvaluationsNo one has reviewed this question yet, be the first!
2
Is it possible to specify a maximum number of restart attempts with the `on-failure` policy?3
What is the main use of Docker Compose?6
Which file takes precedence if services or options are redefined in several files?2
What is the maximum number of healthcheck failures allowed by default before marking a container as unhealthy?2
Connect a service to a network in Docker Compose2
What is the image of the `web` service using `docker-compose -f docker-compose.dev.yml up`?2
How to use volumes in Docker Compose