Files
paragon-playground/src/ParagonPlayground/docker-compose.debug.yml
T

53 lines
1.2 KiB
YAML
Raw Normal View History

services:
mongodb:
image: mongo:7
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh --quiet
interval: 10s
retries: 5
start_period: 20s
backend:
container_name: paragonplayground-backend
build:
context: ./backend
dockerfile: Dockerfile
target: debug
ports:
- "5000:8080"
environment:
- MongoDb__ConnectionString=mongodb://mongodb:27017
- MongoDb__DatabaseName=paragon_playground
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080
depends_on:
mongodb:
condition: service_healthy
frontend:
container_name: paragonplayground-frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend/src:/app/src
depends_on:
- backend
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./certs:/etc/nginx/certs
depends_on:
- backend
- frontend
volumes:
mongo_data: