-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (45 loc) · 1.29 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
version: '3'
services:
mssql-server:
restart: always
user: root
image: "mcr.microsoft.com/mssql/server:2019-CU18-ubuntu-20.04"
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "Password!123"
MSSQL_PID: "Express"
TZ: Europe/Warsaw
volumes:
- /srv/${PROJECT_NAME}/data/mssql-server:/var/opt/mssql/data
- /srv/${PROJECT_NAME}/backups/mssql-server:/var/sqlbackups
database:
build:
context: .
dockerfile: ./docker/database/Dockerfile
args:
CONNECTION_STRING: "Server=mssql-server;Database=FMFT;Uid=sa;Password=Password!123"
depends_on:
- mssql-server
web-api:
restart: always
build:
context: .
dockerfile: ./docker/web-api/Dockerfile
depends_on:
database:
condition: service_completed_successfully
environment:
ASPNETCORE_ENVIRONMENT: Production
TZ: Europe/Warsaw
volumes:
- /srv/${PROJECT_NAME}/configs/serverconfig.json:/app/appsettings.Production.json
web-client:
restart: always
build:
context: .
dockerfile: ./docker/web-client/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Production
TZ: Europe/Warsaw
volumes:
- /srv/${PROJECT_NAME}/configs/clientconfig.json:/usr/share/nginx/html/appsettings.json