-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 832 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 832 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
version: '1.0'
services:
mysql-server:
image: mysql:latest
container_name: mysql-container
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: HRM
MYSQL_USER: sahil
MYSQL_PASSWORD: password
ports:
- "3310:3306"
volumes:
- mysql-data:/var/lib/mysql
- ./EmployeeAPI/Database:/docker-entrypoint-initdb.d
restart: always
dotnet-employeeapi:
build:
context: ./EmployeeAPI
container_name: dotnet-employeeapi
depends_on:
- mysql-server
environment:
ConnectionStrings__mysql: Server=mysql-server;Port=3306;Database=HRM;User=sahil;Password=password;
ports:
- "5069:5069"
angular-frontend:
build:
context: ./Frontend
container_name: angular-frontend
ports:
- "4200:80"
volumes:
mysql-data: