-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
89 lines (84 loc) · 1.87 KB
/
docker-compose.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.7"
services:
# mongodb
mongodb:
image: mongo:4.4.5
ports:
- 27017:27017
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- mongo_data:/data/db
networks:
- mongo_network
# mongo_express
mongo_express:
image: mongo-express:0.54
depends_on:
- mongodb
ports:
- 8080:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
- ME_CONFIG_MONGODB_SERVER=mongodb
- ME_CONFIG_MONGODB_PORT=27017
networks:
- mongo_network
mysqldb:
image: mysql:5.7
restart: always
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=Catalog
- MYSQL_USER=admin
- MYSQL_PASSWORD=password
volumes:
- mysql_data:/var/lib/mysql
networks:
- mysql_network
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- mysqldb
ports:
- 8081:80
environment:
- PMA_HOST=mysqldb
- PMA_PORT=3306
- PMA_USER=admin
- PMA_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
networks:
- mysql_network
api:
build:
context: "Catalog API/"
dockerfile: "Catalog API/Dockerfile"
depends_on:
- mongodb
- mysqldb
ports:
- 5000:80
environment:
- ASPNETCORE_ENVIRONMENT=Production
- MongoDbSettings:Host=mongodb
- MongoDbSettings:Username=admin
- MongoDbSettings:Password=password
- MysqlDbSettings:Host=mysqldb
- MysqlDbSettings:Username=admin
- MysqlDbSettings:Password=password
- JwtSettings:Key=This_Is_My_Secret_Jwt_Key
networks:
- mongo_network
- mysql_network
volumes:
mongo_data:
mysql_data:
networks:
mongo_network:
mysql_network: