-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.06 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
frontend:
build:
context: ./Front-End
dockerfile: Dockerfile
ports:
- "80:80"
networks:
- resourcehub-network
backend:
build:
context: ./Back-End
dockerfile: Dockerfile
ports:
- "9090:9090"
networks:
- resourcehub-network
# Add environment variables for database connection if needed
# environment:
# - DB_HOST=db
# - DB_PORT=3306
# - DB_USER=user
# - DB_PASSWORD=password
# - DB_NAME=resourcehub
# depends_on:
# - db # Uncomment if you add a database service
networks:
resourcehub-network:
driver: bridge
# Add a database service if needed
# volumes:
# db_data: # Persists database data
# services:
# db:
# image: mysql:8.0
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD: rootpassword
# MYSQL_DATABASE: resourcehub
# MYSQL_USER: user
# MYSQL_PASSWORD: password
# ports:
# - "3306:3306"
# volumes:
# - db_data:/var/lib/mysql
# networks:
# - resourcehub-network