-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 940 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 940 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
44
45
46
47
48
services:
api:
build:
context: ./api
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- SQL_SERVER=db
- SQL_DATABASE=saif
- SQL_USERNAME=sa
- SQL_PASSWORD=ComplexP@ss123
- API_KEY=insecure_api_key_12345
volumes:
- ./api:/app
depends_on:
- db
restart: unless-stopped
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "80:80"
environment:
- API_URL=http://api:8000
- API_KEY=insecure_api_key_12345
volumes:
- ./web:/var/www/html
depends_on:
- api
restart: unless-stopped
db:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=ComplexP@ss123
- MSSQL_PID=Express
ports:
- "1433:1433"
volumes:
- saif-sqldata:/var/opt/mssql
restart: unless-stopped
volumes:
saif-sqldata: