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

70 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2023-09-20 23:38:59 +08:00
version: '3'
2023-08-10 21:08:40 +08:00
services:
mysql:
2024-02-17 23:25:31 +08:00
container_name: moneynote_mysql
image: registry.cn-hangzhou.aliyuncs.com/moneynote/mysql5-arm:latest
2023-08-10 21:08:40 +08:00
restart: always
environment:
2024-01-27 14:15:08 +08:00
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD:-78p7gkc1}
2024-02-17 23:25:31 +08:00
- MYSQL_DATABASE=moneynote
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
volumes:
2024-02-17 23:25:31 +08:00
- moneynote_mysql_data:/var/lib/mysql
2024-01-15 21:20:54 +08:00
ports:
- "43740:3306"
2023-08-10 21:08:40 +08:00
phpmyadmin:
2024-02-17 23:25:31 +08:00
container_name: moneynote_phpmyadmin
image: registry.cn-hangzhou.aliyuncs.com/moneynote/phpmyadmin5:latest
2023-08-10 21:08:40 +08:00
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
2024-02-17 23:25:31 +08:00
api:
container_name: moneynote_api
2023-09-20 23:11:09 +08:00
links:
- mysql
2024-02-17 23:25:31 +08:00
image: registry.cn-hangzhou.aliyuncs.com/moneynote/moneynote-api:latest
2024-01-24 23:18:19 +08:00
restart: always
2024-01-27 14:15:08 +08:00
environment:
- DB_HOST=mysql
- DB_PORT=3306
2024-02-17 23:25:31 +08:00
- DB_NAME=moneynote
2024-01-27 14:15:08 +08:00
- DB_USER=root
- DB_PASSWORD=${DB_PASSWORD:-78p7gkc1}
- invite_code=${invite_code:-111111}
2024-01-10 22:29:17 +08:00
ports:
- "43742:9092"
2023-08-10 21:08:40 +08:00
2024-02-17 23:25:31 +08:00
pc:
container_name: moneynote_pc
2023-08-10 21:08:40 +08:00
links:
2024-02-17 23:25:31 +08:00
- api
image: registry.cn-hangzhou.aliyuncs.com/moneynote/moneynote-pc:latest
2024-01-24 23:18:19 +08:00
restart: always
2023-08-10 21:08:40 +08:00
environment:
2024-02-17 23:25:31 +08:00
USER_API_HOST: http://api:9092
2023-08-10 21:08:40 +08:00
ports:
2024-01-10 22:29:17 +08:00
- "43743:80"
2023-08-10 21:08:40 +08:00
2024-02-17 23:25:31 +08:00
h5:
container_name: moneynote_h5
2023-08-10 21:08:40 +08:00
links:
2024-02-17 23:25:31 +08:00
- api
image: registry.cn-hangzhou.aliyuncs.com/moneynote/moneynote-h5:latest
2024-01-24 23:18:19 +08:00
restart: always
2023-08-10 21:08:40 +08:00
environment:
2024-02-17 23:25:31 +08:00
USER_API_HOST: http://api:9092
2023-08-10 21:08:40 +08:00
ports:
2024-01-10 22:29:17 +08:00
- "43744:80"
2023-08-10 21:08:40 +08:00
volumes:
2024-02-17 23:25:31 +08:00
moneynote_mysql_data: