This commit is contained in:
markliu2013 2023-06-13 19:08:44 +08:00
parent bc9e398b64
commit 2132f2f14b
2 changed files with 47 additions and 5 deletions

44
docker-compose-bak2.yml Normal file
View File

@ -0,0 +1,44 @@
version: '3'
services:
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: NWPkVrO2
MYSQL_DATABASE: moneywhere
MYSQL_USER: moneywhere
MYSQL_PASSWORD: YR1IZ0HW
volumes:
- moneywhere_mysql_data:/var/lib/mysql
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_general_ci']
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- "8085:80"
moneywhere-api-user:
depends_on:
- mysql
image: markliu2018/moneywhere-api-user:latest
env_file: api.env
moneywhere-fe-user:
links:
- moneywhere-api-user
image: markliu2018/moneywhere-fe-user:latest
environment:
USER_API_HOST: http://moneywhere-api-user:9092
API_HOST: https://api.moneywhere.com/api/v1/user-api
ports:
- "9097:80"
volumes:
moneywhere_mysql_data:

View File

@ -2,15 +2,13 @@ version: '3'
services:
mysql:
image: mysql:5.7
build: ./mysql/
command: --init-file /data/1.sql
restart: always
environment:
MYSQL_ROOT_PASSWORD: NWPkVrO2
MYSQL_DATABASE: moneywhere
MYSQL_USER: moneywhere
MYSQL_PASSWORD: YR1IZ0HW
volumes:
- moneywhere_mysql_data:/var/lib/mysql
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_general_ci']
phpmyadmin:
image: phpmyadmin/phpmyadmin