Skip to content

Commit

Permalink
Add Docker Compose File
Browse files Browse the repository at this point in the history
  • Loading branch information
SydZero authored Sep 30, 2024
1 parent 145e3a1 commit b65cf5b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
frontend:
build:
context: ./chemistrycafe # Path to your front-end repository
dockerfile: Dockerfile
ports:
#- "8080:80" # Map host port to container port
- "4173:4173"
depends_on:
- backend # Ensure the backend service starts before frontend
environment:
- ASPNETCORE_ENVIRONMENT=Development
- API_URL=http://backend:80 # This points to the backend service within the Docker network


backend:
build:
context: ./chemistry-cafe-api # Path to your back-end repository
dockerfile: Dockerfile
ports:
- "8080:80" # Map host port to container port
environment:
- ASPNETCORE_ENVIRONMENT=Development

0 comments on commit b65cf5b

Please sign in to comment.