docker-compose-moneynote/docker-compose-hub.yml
markliu2013 7aab6cf657 save
2024-02-15 21:14:15 +08:00

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: