-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 998 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 998 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
45
46
47
48
version: '3.4'
services:
templatecqrs.api:
container_name: TemplateCQRS_API
image: ${DOCKER_REGISTRY-}templatecqrsapi
build:
context: .
dockerfile: src/TemplateCQRS.Api/Dockerfile
ports:
- 5000:5000
- 5001:5001
depends_on:
- redis
- mysql
command: ["dotnet", "TemplateCQRS.Api.dll"]
networks:
- my-network
redis:
container_name: RedisInstance
image: redis:latest
ports:
- 6379:6379
networks:
- my-network
mysql:
container_name: MysqlInstance
image: mysql:latest
ports:
- 3307:3007
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: template_db
networks:
- my-network
templatecqrs.webapp:
container_name: TemplateCQRS_WebApp
build:
context: .
dockerfile: src/TemplateCQRS.WebApp/Dockerfile
ports:
- 80:80
command: ["dotnet", "TemplateCQRS.WebApp.dll"]
networks:
- my-network
networks:
my-network: