docker-compose-moneynote/docker-compose.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

2023-09-20 23:38:59 +08:00
version: '3'
2023-07-28 15:25:02 +08:00
services:
mysql:
2023-09-20 23:11:09 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/mysql:5.7
2023-07-28 15:25:02 +08:00
restart: always
environment:
MYSQL_ROOT_PASSWORD: NWPkVrO2
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:28:50 +08:00
volumes:
- moneywhere_mysql_data:/var/lib/mysql
2023-07-28 15:25:02 +08:00
phpmyadmin:
2023-09-14 00:33:09 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
2023-07-28 15:25:02 +08:00
links:
- mysql
environment:
PMA_ARBITRARY: 1
restart: always
ports:
- "8085:80"
moneywhere-api-user:
2023-09-20 23:11:09 +08:00
links:
- mysql
2023-09-14 00:33:09 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-api-user:latest
2023-07-28 15:25:02 +08:00
env_file: api.env
moneywhere-fe-user:
links:
- moneywhere-api-user
2023-09-14 00:33:09 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-fe-user:latest
2023-07-28 15:25:02 +08:00
environment:
USER_API_HOST: http://moneywhere-api-user:9092
ports:
- "9097:80"
moneywhere-fe-user-mobile:
links:
- moneywhere-api-user
2023-09-14 00:33:09 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-fe-user-mobile:latest
2023-07-28 15:25:02 +08:00
environment:
USER_API_HOST: http://moneywhere-api-user:9092
ports:
- "9098:80"
volumes:
2023-06-13 00:16:36 +08:00
moneywhere_mysql_data: