mirror of
https://gitee.com/markliu2013/docker-compose-moneynote.git
synced 2024-11-17 20:58:02 +08:00
70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
mysql:
|
|
container_name: moneywhere_mysql
|
|
image: markliu2018/mysql5-arm:latest
|
|
restart: always
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD= ${DB_PASSWORD:-78p7gkc1}
|
|
- MYSQL_DATABASE= moneywhere
|
|
command: [
|
|
'--character-set-server=utf8mb4',
|
|
'--collation-server=utf8mb4_general_ci',
|
|
]
|
|
volumes:
|
|
- moneywhere_mysql_data:/var/lib/mysql
|
|
ports:
|
|
- "43740:3306"
|
|
|
|
phpmyadmin:
|
|
container_name: moneywhere_phpmyadmin
|
|
image: markliu2018/phpmyadmin5:latest
|
|
restart: always
|
|
links:
|
|
- mysql
|
|
environment:
|
|
PMA_ARBITRARY: 1
|
|
ports:
|
|
- "43741:80"
|
|
|
|
moneywhere-api-user:
|
|
container_name: moneywhere_api
|
|
links:
|
|
- mysql
|
|
image: markliu2018/moneywhere-api-user:latest
|
|
restart: always
|
|
environment:
|
|
- DB_HOST=mysql
|
|
- DB_PORT=3306
|
|
- DB_NAME=moneywhere
|
|
- DB_USER=root
|
|
- DB_PASSWORD=${DB_PASSWORD:-78p7gkc1}
|
|
- invite_code=${invite_code:-111111}
|
|
ports:
|
|
- "43742:9092"
|
|
|
|
moneywhere-fe-user:
|
|
container_name: moneywhere_fe
|
|
links:
|
|
- moneywhere-api-user
|
|
image: markliu2018/moneywhere-fe-user:latest
|
|
restart: always
|
|
environment:
|
|
USER_API_HOST: http://moneywhere-api-user:9092
|
|
ports:
|
|
- "43743:80"
|
|
|
|
moneywhere-fe-user-mobile:
|
|
container_name: moneywhere_fe_mobile
|
|
links:
|
|
- moneywhere-api-user
|
|
image: markliu2018/moneywhere-fe-user-mobile:latest
|
|
restart: always
|
|
environment:
|
|
USER_API_HOST: http://moneywhere-api-user:9092
|
|
ports:
|
|
- "43744:80"
|
|
|
|
volumes:
|
|
moneywhere_mysql_data: |