-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
30 lines (28 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: '3.8'
services:
front-end:
build:
context: ./front-end # Path to our frontend directory containing front-end's Dockerfile
dockerfile: Dockerfile # Name of your frontend Dockerfile
ports:
- "3000:3000" # Map container port to host port if needed
# Ensure this .env file exists in your root directory!
env_file:
- ./front-end.env
# Add volumes if needed
volumes:
- ./front-end:/usr/src/front-end # Mount your front-end directory to the container
# Add other configurations as required
back-end:
build:
context: ./back-end # Path to our backend directory containing back-end's Dockerfile
dockerfile: Dockerfile # Name of your backend Dockerfile
ports:
- "3001:3001" # Map container port to host port if needed
# Ensure this .env file exists in your root directory!
env_file:
- ./back-end.env
# Add volumes if needed
volumes:
- ./back-end:/usr/src/back-end # Mount your back-end directory to the container
# Add other configurations as required