docker-compose-moneynote/docker-compose-ali.yml

56 lines
1.4 KiB
YAML
Raw Normal View History

2023-09-20 23:38:59 +08:00
version: '3'
2023-08-10 21:08:40 +08:00
services:
mysql:
2023-09-20 23:11:09 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/mysql:5.7
2023-08-10 21:08:40 +08:00
restart: always
environment:
2024-01-09 22:59:39 +08:00
MYSQL_ROOT_PASSWORD: 111111
2023-08-10 21:08:40 +08:00
MYSQL_DATABASE: moneywhere
2023-09-20 23:11:09 +08:00
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_general_ci',
2023-09-20 23:38:59 +08:00
'--max_connections=10000',
2023-09-20 23:11:09 +08:00
'--default-authentication-plugin=mysql_native_password'
]
2023-09-20 23:38:59 +08:00
volumes:
- moneywhere_mysql_data:/var/lib/mysql
2023-08-10 21:08:40 +08:00
phpmyadmin:
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
links:
- mysql
environment:
PMA_ARBITRARY: 1
restart: always
ports:
2024-01-10 22:29:17 +08:00
- "43741:80"
2023-08-10 21:08:40 +08:00
moneywhere-api-user:
2023-09-20 23:11:09 +08:00
links:
- mysql
2023-08-10 21:08:40 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-api-user:latest
env_file: api.env
2024-01-10 22:29:17 +08:00
ports:
- "43742:9092"
2023-08-10 21:08:40 +08:00
moneywhere-fe-user:
links:
- moneywhere-api-user
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-fe-user:latest
environment:
USER_API_HOST: http://moneywhere-api-user:9092
ports:
2024-01-10 22:29:17 +08:00
- "43743:80"
2023-08-10 21:08:40 +08:00
moneywhere-fe-user-mobile:
links:
- moneywhere-api-user
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-fe-user-mobile:latest
environment:
USER_API_HOST: http://moneywhere-api-user:9092
ports:
2024-01-10 22:29:17 +08:00
- "43744:80"
2023-08-10 21:08:40 +08:00
volumes:
moneywhere_mysql_data: