-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
85 lines (79 loc) · 1.84 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
version: '3.9'
services:
# wallet:
# build:
# context: .
# dockerfile: DockerfileDiscount
# restart: on-failure
# ports:
# - "8095:8095"
# depends_on:
# - "wallet_database"
# networks:
# - "mynet"
#
# discount:
# build:
# context: .
# dockerfile: DockerfileDiscount
# restart: on-failure
# ports:
# - "8096:8089"
# depends_on:
# - "discount_database"
# networks:
# - "mynet"
wallet_database:
platform: "linux/x86_64"
image: "docker.arvancloud.ir/mysql:8.4"
container_name: "wallet_database"
restart: always
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: "wallet_db"
MYSQL_ROOT_PASSWORD: "veryhardhardpasswordformysql"
MYSQL_USER: "testuser"
MYSQL_PASSWORD: "veryhardhardpasswordformysql"
volumes:
- "./resources/db2.sql:/docker-entrypoint-initdb.d/db2.sql"
networks:
- "mynet"
discount_database:
platform: "linux/x86_64"
container_name: "discount_database"
restart: always
image: "docker.arvancloud.ir/mysql:8.4"
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: "discount_db"
MYSQL_ROOT_PASSWORD: "veryhardhardpasswordformysql"
MYSQL_USER: "testuser"
MYSQL_PASSWORD: "veryhardhardpasswordformysql"
volumes:
- "./resources/db.sql:/docker-entrypoint-initdb.d/db.sql"
networks:
- "mynet"
rabbitmq:
image: "docker.arvancloud.ir/rabbitmq:3.13.2-management"
hostname: "rabbitmq"
environment:
RABBITMQ_DEFAULT_USER: "user"
RABBITMQ_DEFAULT_PASS: "password"
ports:
- "15672:15672"
- "5672:5672"
networks:
- "mynet"
redis:
image: "docker.arvancloud.ir/redis:7.2.4"
container_name: redis
ports:
- "6379:6379"
networks:
- "mynet"
volumes:
db-data:
networks:
mynet: