Skip to content

Commit

Permalink
🦄 refactor(compose): add webui depends on api healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
centonhuang committed Feb 13, 2024
1 parent b41e5d6 commit 0279bdc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ services:
"--browser.gatherUsageStats", "false",
"--server.maxUploadSize", "100",
]
depends_on:
alice-ai-api:
condition: service_healthy

alice-ai-mysql:
image: mysql:latest
container_name: alice-ai-mysql
privileged: true
volumes:
- mysql-data:/var/lib/alice-mysql
- mysql-data:/var/lib/mysql
healthcheck:
test: [ "CMD-SHELL", "mysqladmin ping -h alice-ai-mysql -P 3306 -u$$MYSQL_USER -p$$MYSQL_PASSWORD" ]
interval: 5s
Expand Down

0 comments on commit 0279bdc

Please sign in to comment.