mirror of
https://gitee.com/markliu2013/docker-compose-moneynote.git
synced 2024-11-17 20:58:02 +08:00
save
This commit is contained in:
parent
47f933291b
commit
466a180e55
@ -10,6 +10,10 @@ services:
|
|||||||
MYSQL_DATABASE: moneywhere
|
MYSQL_DATABASE: moneywhere
|
||||||
volumes:
|
volumes:
|
||||||
- moneywhere_mysql_data:/var/lib/mysql
|
- moneywhere_mysql_data:/var/lib/mysql
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
||||||
|
timeout: 20s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
|
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
|
||||||
@ -25,7 +29,8 @@ services:
|
|||||||
|
|
||||||
moneywhere-api-user:
|
moneywhere-api-user:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
mysql:
|
||||||
|
condition: service_healthy
|
||||||
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-api-user:latest
|
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/moneywhere-api-user:latest
|
||||||
env_file: api.env
|
env_file: api.env
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user