-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (66 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
78 lines (66 loc) · 1.64 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.4'
services:
pizzadelivery:
image: pizza-delivery-web
build:
context: .
dockerfile: PizzaDelivery/PizzaDeliveryDockerfile
ports:
- "7003:7003" # Map container port 80 to host port 3000
- "5021:5021" # Map container port 80 to host port 3000
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:7003;http://+:5021
networks:
- pizza-delivery-net
depends_on:
- postgres_db
- sql-server-db
pizzadeliveryapi:
image: pizza-delivery-api
build:
context: .
dockerfile: PizzaDeliveryApi/PizzaDeliveryApiDockerfile
ports:
- "7278:7278"
- "5201:5201"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:7278;http://+:5201
networks:
- pizza-delivery-net
depends_on:
- postgres_db
- sql-server-db
postgres_db:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: qwerty
POSTGRES_DB: pizza-delivery-db
ports:
- "5432:5432"
networks:
- pizza-delivery-net
volumes:
- postgres-data:/var/lib/postgresql/data
sql-server-db:
container_name: sql-server-db
image: mcr.microsoft.com/mssql/server:2017-latest
ports:
- "1433:1433"
environment:
SA_PASSWORD: qwerty1234A
ACCEPT_EULA: "Y"
networks:
- pizza-delivery-net
volumes:
- sql-server-data:/var/lib/mssql/data
networks:
pizza-delivery-net:
name : pizza-delivery-net
driver: bridge
volumes:
postgres-data:
sql-server-data: