support init database
This commit is contained in:
1 parent
1e3e39284a
commit
ac331dc9c9
16 files changed
+517
-4
No files matched your search
@@ -0,0 +1,30 @@
|
||||
version: '3'
|
||||
services:
|
||||
wncloud-web:
|
||||
container_name: wncloud-web
|
||||
image: wncloud:0.0.1
|
||||
build: .
|
||||
ports:
|
||||
- "0.0.0.0:8080:80"
|
||||
command: sh -c "alembic upgrade head && uvicorn app:app --host 0.0.0.0 --port 80"
|
||||
depends_on:
|
||||
wncloud-mysql:
|
||||
condition: service_healthy
|
||||
|
||||
wncloud-mysql:
|
||||
container_name: wncloud-mysql
|
||||
image: mysql
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: C3nvsoWP5Nhe
|
||||
ports:
|
||||
- "0.0.0.0:3306:3306"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mysql -hlocalhost -uroot -pC3nvsoWP5Nhe -e 'SELECT 1;'"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 5s
|
||||
|
||||
|
||||
Reference in new issue
Block a user