/
docker-compose.yml
68 lines (63 loc) · 1.56 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP .NET Core service.
version: '3.8'
services:
server:
image: soccerapi:dev
build:
context: .
dockerfile: Soccer.Api/Dockerfile
ports:
- 5000:5000
depends_on:
- seq
# - db
environment:
- SimpleProperty="Hello from docker compose"
- ConnectionStrings__DefaultConnection=Server=db;Database=SoccerDb;Username=root;Password=2510203121;
- Debug:ShowHost=true
# - Seq="http://seq:5341"
networks:
- server-database
volumes:
- .:/src
# deploy:
# replicas: 6
entrypoint: dotnet run
seq:
image: datalust/seq:latest
environment:
- ACCEPT_EULA=Y
ports:
- 5344:80
networks:
- server-database
db:
image: mysql/mysql-server:latest
environment:
- MYSQL_ROOT_PASSWORD=2510203121
- MYSQL_DATABASE=SoccerDb
- MYSQL_USER=root
- MYSQL_PASSWORD=2510203121
volumes:
- dbvolume4:/var/lib/mysql
- ./_MySQL_Init_Script:/docker-entrypoint-initdb.d
networks:
- server-database
# ports:
# - 3306:3306
rabbitmq:
container_name: rabbitmq
tty: true
hostname: localhost
ports:
- "15672:15672"
- "5672:5672"
image: rabbitmq:3-management
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
dbvolume4:
networks:
server-database:
driver: bridge