-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (47 loc) · 1.09 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.9'
services:
app:
build: .
platform: linux/amd64
env_file:
- .env
- .secrets
volumes:
- ./app:/home/code/app
- ./tests:/home/code/tests
- ./logger.ini:/home/code/logger.ini
- ./sqlserver/setup:/home/code/setup
ports:
- 8585:8080
depends_on:
- sqlserver
command: bash -c "
uvicorn app.main:app
--log-config ./logger.ini
--host 0.0.0.0 --port 8080
--lifespan=on --use-colors
--reload --log-level debug
"
sqlserver:
build:
context: ./sqlserver
dockerfile: Dockerfile
platform: linux/amd64
volumes:
- sqlserver_data:/var/opt/mssql
- ./sqlserver/backup:/var/opt/mssql/backup
- ./sqlserver/restore:/var/opt/mssql/restore
- ./sqlserver/data:/var/opt/mssql/data
- ./sqlserver/log:/var/opt/mssql/log
- ./sqlserver/setup:/home/setup
env_file:
- .env
- .secrets
environment:
- SA_PASSWORD=Alaska2023
- ACCEPT_EULA=Y
- MSSQL_PID=Developer
ports:
- 1433:1433
volumes:
sqlserver_data: