-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 935 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
services:
streetcode-back:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:80"
depends_on:
- sqlserver
environment:
- ConnectionStrings__DefaultConnection=Server=sqlserver;Database=${DB_NAME};User Id=${DB_USER};Password=${SA_PASSWORD};TrustServerCertificate=True
- ASPNETCORE_URLS=http://+:80
networks:
- streetcodeapp
restart: on-failure
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
SA_PASSWORD: "${SA_PASSWORD}"
ACCEPT_EULA: "Y"
ports:
- "${MS_SQL_DB_PORT}:1433"
volumes:
- sqlvolume:/var/opt/mssql
networks:
- streetcodeapp
redis:
image: redis:7.2-alpine
container_name: streetcode-redis
ports:
- "6379:6379"
volumes:
- redisdata:/data
networks:
- streetcodeapp
networks:
streetcodeapp:
volumes:
sqlvolume:
redisdata: