-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-impera-backend.yml
59 lines (51 loc) · 1.29 KB
/
docker-compose-impera-backend.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
54
55
56
57
58
59
version: "3.2"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
services:
backend-dev:
container_name: impera-backend-dev
restart: always
image: impera-backend:latest
ports:
- "5002:5000"
secrets:
- appsettings.dev.json
environment:
- ASPNETCORE_ENVIRONMENT=dev
# Want to run sql server separately
extra_hosts:
- "host.docker.internal:host-gateway"
backend-production:
container_name: impera-backend-production
restart: always
image: impera-backend:production
ports:
- "5004:5000"
secrets:
- appsettings.production.json
environment:
- ASPNETCORE_ENVIRONMENT=production
# Want to run sql server separately
extra_hosts:
- "host.docker.internal:host-gateway"
mssql:
image: mcr.microsoft.com/mssql/server
restart: always
volumes:
- mssql-server-linux-data:/var/opt/mssql/data
ports:
- "1433:1433"
volumes:
- /opt/docker/mssql-latest:/var/opt/mssql/data
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- ACCEPT_EULA=Y
- SA_PASSWORD
secrets:
appsettings.dev.json:
file: ./appsettings.dev.json
appsettings.production.json:
file: ./appsettings.production.json