-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
50 lines (46 loc) · 1016 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
38
39
40
41
42
43
44
45
46
47
48
49
50
networks:
app-network:
driver: bridge
services:
# ASP.NET Core Web API Application
sgp-webapi:
image: ${DOCKER_REGISTRY-}sgp-webapi
container_name: sgp-webapi
build:
context: .
dockerfile: src/SGP.PublicApi/Dockerfile
restart: unless-stopped
links:
- "sgp-sql-server"
- "sgp-redis"
networks:
- app-network
depends_on:
- "sgp-sql-server"
- "sgp-redis"
# SQL Server
sgp-sql-server:
image: mcr.microsoft.com/azure-sql-edge:latest
cap_add: [ 'SYS_PTRACE' ]
hostname: mssql
container_name: sgp-sql-server
restart: always
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=pMA63033n6tF
networks:
- app-network
# Redis Cache Server
sgp-redis:
image: redis:latest
container_name: sgp-redis
command: redis-server --requirepass pMA63033n6tF
restart: always
expose:
- "6379"
ports:
- "6379:6379"
networks:
- app-network