version: '3.8' | |
services: | |
web: | |
build: . | |
ports: | |
- "5000:5000" | |
volumes: | |
- ./src:/src/app | |
# env_file: | |
# - .env | |
depends_on: | |
- mongo | |
mongo: | |
image: mongo:latest | |
restart: always | |
ports: | |
- "27017:27017" # Correctly formatted as a list | |
volumes: | |
- mongo_data:/data/db | |
volumes: | |
mongo_data: |