-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
114 lines (109 loc) · 2.95 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
services:
website:
build:
context: .
target: website
container_name: website
environment:
# 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai
BITEAGLE_TESTNET: ${BITEAGLE_TESTNET}
DEPOSIT_SEED: ${DEPOSIT_SEED}
ports:
- 8888:8888
depends_on:
- mysql
- redis
volumes:
- ./data/logs/website:/logs
networks:
- website_network
deposit:
build:
context: .
target: deposit
# dockerfile: Dockerfile-deposit
container_name: deposit
environment:
# 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai
BITEAGLE_TESTNET: ${BITEAGLE_TESTNET}
DEPOSIT_SEED: ${DEPOSIT_SEED}
# ports:
depends_on:
- mysql
- redis
volumes:
- ./data/logs/deposit:/logs
networks:
- website_network
inscribe:
build:
context: .
target: inscribe
container_name: inscribe
environment:
# 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai
BITEAGLE_TESTNET: ${BITEAGLE_TESTNET}
DEPOSIT_SEED: ${DEPOSIT_SEED}
# ports:
depends_on:
- mysql
- redis
volumes:
- ./data/logs/inscribe:/logs
- ./images/nft:/images # NFT 图片目录映射
networks:
- website_network
mysql:
image: mysql/mysql-server:8.0.32
container_name: mysql
environment:
# 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai
MYSQL_USER: root
MYSQL_ROOT_PASSWORD: FUnxy7jdfYsxkdfs
MYSQL_DATABASE: website
MYSQL_ROOT_HOST: '%'
# - MYSQL_ROOT_HOST=website
ports:
- 33068:3306
command:
# 将mysql8.0默认密码策略 修改为 原先 策略 (mysql8.0对其默认策略做了更改 会导致密码无法匹配)
# Modify the Mysql 8.0 default password strategy to the original strategy (MySQL8.0 to change its default strategy will cause the password to be unable to match)
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
# --init-file /data/init.sql
volumes:
- ./data/mysql/data:/var/lib/mysql
- ./doc/website-v1.0.sql:/docker-entrypoint-initdb.d/init.sql
privileged: true
# restart: always
networks:
- website_network
redis:
image: redis:6.2.7
container_name: redis
ports:
- 36379:6379
environment:
# 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai
volumes:
# 数据文件 - data files
- ./data/redis/data:/data:rw
command: "redis-server --requirepass Tisd28478fhkhKSDFsdfk --appendonly yes"
privileged: true
# restart: always
networks:
- website_network
networks:
website_network:
driver: bridge
ipam:
config:
- subnet: 172.29.0.0/16