-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (27 loc) · 841 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (27 loc) · 841 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
version: "3.8" #docker version
services: #each service should be a container managed in the docker-compose.yml file
backend:
build: ./backend/task-manager
container_name: task-manager
restart: always
ports:
- "8080:8080"
environment: #basically goes to spring boot and tells it to give docker-compose.yml all the info it has on accessing the database
SPRING_PROFILES_ACTIVE: dev
SPRING_DATASOURCE_URL: jdbc:mysql://mysql-37567e14-timmid999-45da.b.aivencloud.com:14704/defaultdb
SPRING_DATASOURCE_USERNAME:
SPRING_DATASOURCE_PASSWORD:
networks:
- app_network
frontend:
build: ./frontend/react-app
container_name: react-app
restart: always
ports:
- "3000:3000"
depends_on:
- backend
networks:
- app_network
networks:
app_network: {}