mirror of
https://gitee.com/markliu2013/docker-compose-moneynote.git
synced 2024-11-17 20:58:02 +08:00
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
mysql:
|
|
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/mysql:5.7
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: 111111
|
|
MYSQL_DATABASE: moneywhere
|
|
command: [
|
|
'--character-set-server=utf8mb4',
|
|
'--collation-server=utf8mb4_general_ci',
|
|
'--max_connections=10000',
|
|
'--default-authentication-plugin=mysql_native_password'
|
|
]
|
|
volumes:
|
|
- moneywhere_mysql_data:/var/lib/mysql
|
|
ports:
|
|
- "43740:3306"
|
|
|
|
phpmyadmin:
|
|
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
|
|
links:
|
|
- mysql
|
|
environment:
|
|
PMA_ARBITRARY: 1
|
|
restart: always
|
|
ports:
|
|
- "43741:80"
|
|
|
|
moneywhere-api-user:
|
|
links:
|
|
- mysql
|
|
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-api-user:latest
|
|
env_file: api.env
|
|
ports:
|
|
- "43742:9092"
|
|
|
|
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:
|
|
- "43743:80"
|
|
|
|
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:
|
|
- "43744:80"
|
|
|
|
volumes:
|
|
moneywhere_mysql_data: |