-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 935 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (39 loc) · 935 Bytes
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
services:
backend:
build: .
container_name: flight-planner-backend
ports:
- 8080:8080
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/flightdb
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=root
- SPRING_PROFILES_ACTIVE=dev
- JWT_SECRET=${JWT_SECRET}
- FRONTEND_URL=http://localhost:3000
depends_on:
- mysql
env_file:
- .env
frontend:
build:
context: ./flight-planner-frontend
args:
- VITE_API_BASE_URL=http://localhost:8080/api/v1
container_name: flight-planner-frontend
ports:
- 3000:8080
depends_on:
- backend
mysql:
image: mysql:8.0
container_name: flight-planner-mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=flightdb
ports:
- 3307:3306
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data: