forked from rafaelfgx/Architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (34 loc) · 858 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (34 loc) · 858 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
version: "3.7"
services:
web:
image: architecture_web
container_name: architecture_web
restart: always
build:
context: .
dockerfile: dockerfile
environment:
- ConnectionStrings:Context=Server=architecture_database;Database=Database;User Id=sa;Password=P4ssW0rd!;
depends_on:
- database
networks:
- network
ports:
- 8090:80
database:
image: mcr.microsoft.com/mssql/server
container_name: architecture_database
restart: always
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=P4ssW0rd!
networks:
- network
ports:
- 1433:1433
volumes:
- database:/var/opt/mssql
networks:
network:
volumes:
database: