-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (35 loc) · 937 Bytes
/
docker-compose.yml
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
services:
frontend:
build:
context: ./front-end
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- backend
backend:
build:
context: ./Back-End
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- SQL_SERVER_HOST=sqlserver
- SQL_SERVER_USER=sa
- SQL_SERVER_PASSWORD=MySecureP@ss123
- SQL_SERVER_DATABASE=master
depends_on:
- sqlserver
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=MySecureP@ss123
- MSSQL_PID=Developer
ports:
- "1433:1433"
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./entrypoint.sh:/usr/src/app/entrypoint.sh # Mount the entrypoint script
command: chmod +x entrypoint.sh
entrypoint: ["/bin/sh", "/usr/src/app/entrypoint.sh"] # Use the custom entrypoint script