-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (73 loc) · 1.91 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
69
70
71
72
73
services:
postgres:
image: postgres:16
ports:
- "5432:5432"
environment:
- POSTGRES_USER=apluser
- POSTGRES_PASSWORD=apluserpass
- POSTGRES_DB=apldb
mysql:
image: mysql:8.0
environment:
- MYSQL_USER=apluser
- MYSQL_PASSWORD=apluserpass
- MYSQL_DATABASE=apldb
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=password
ports:
- "3306:3306"
command:
mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
hardhat-network:
build:
context: .
dockerfile: tests/Dockerfile_hardhat
ports:
- "8545:8545"
ibet-wallet-api-postgres:
image: ibet-wallet-api
build:
context: ./
dockerfile: ./tests/Dockerfile_unittest
environment:
- WEB3_HTTP_PROVIDER=http://quorum:8545
- RSA_PASSWORD=password
- TEST_DATABASE_URL=postgresql://apluser:apluserpass@postgres/apldb
- UNIT_TEST_MODE=1
- RESPONSE_VALIDATION_MODE=1
- BOND_TOKEN_ENABLED=1
- MEMBERSHIP_TOKEN_ENABLED=1
- COUPON_TOKEN_ENABLED=1
- SHARE_TOKEN_ENABLED=1
links:
- postgres:postgres
- hardhat-network:quorum
depends_on:
- postgres
- hardhat-network
volumes:
- ./cov:/app/ibet-Wallet-API/cov
ibet-wallet-api-mysql:
image: ibet-wallet-api
build:
context: ./
dockerfile: ./tests/Dockerfile_unittest
environment:
- WEB3_HTTP_PROVIDER=http://quorum:8545
- RSA_PASSWORD=password
- TEST_DATABASE_URL=mysql+pymysql://apluser:apluserpass@mysql:3306/apldb
- UNIT_TEST_MODE=1
- RESPONSE_VALIDATION_MODE=1
- BOND_TOKEN_ENABLED=1
- MEMBERSHIP_TOKEN_ENABLED=1
- COUPON_TOKEN_ENABLED=1
- SHARE_TOKEN_ENABLED=1
links:
- mysql:mysql
- hardhat-network:quorum
depends_on:
- mysql
- hardhat-network
volumes:
- ./cov:/app/ibet-Wallet-API/cov