-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (47 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (47 loc) · 1.03 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
52
version: '3.8'
services:
mssql:
build:
context: ./mssql
dockerfile: Dockerfile
container_name: mssql_server_dev
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=nhomNaymuoidiem!
- MSSQL_PID=Developer
ports:
- "1435:1433"
volumes:
- sql_data:/var/opt/mssql
- ./mssql/backup:/var/opt/mssql/backup
restart: always
healthcheck:
test: ["CMD-SHELL", "sqlcmd -S localhost -U sa -P 'nhomNaymuoidiem!' -Q 'SELECT 1'"]
interval: 10s
timeout: 5s
retries: 5
start_period: 60s
backend:
container_name: backend_server
platform: linux/amd64
build:
context: ./backend
dockerfile: Dockerfile
restart: always
environment:
- DB_HOST=host.docker.internal
depends_on:
mssql:
condition: service_healthy
ports:
- 3030:3030
nginx:
build:
context: ./frontend/
dockerfile: Dockerfile
restart: always
ports:
- 3000:80
volumes:
sql_data:
driver: local