-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (47 loc) · 1.3 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
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP .NET Core service.
version: '3.7'
services:
webapp:
image: webapp
container_name: webapp
build:
dockerfile: ./webapp/Dockerfile
ports:
- 5000:5000
environment:
- ConnectionStrings:MySqlConnection=server=friendsdb;database=friendsdb;uid=root;password=root;
depends_on:
- friendsdb
networks:
- otus-network
data_generator:
image: data_generator
container_name: data_generator
build:
dockerfile: ./data_generator/Dockerfile
environment:
- ConnectionStrings:MySqlConnection=server=friendsdb;database=friendsdb;uid=root;password=root;
- NumberOfProfilesToGenerate=1000000
- WaitDatabaseReadyInSeconds=30
depends_on:
- friendsdb
networks:
- otus-network
friendsdb:
image: friendsdb
container_name: friendsdb
build:
dockerfile: ./friendsdb/Dockerfile
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=friendsdb
volumes:
- friendsdb_volume:/var/lib/mysql/:delegated
networks:
- otus-network
volumes:
friendsdb_volume:
networks:
otus-network: