mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
use docker run example
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
version: '3'
|
||||
services:
|
||||
mysql:
|
||||
image: mariadb
|
||||
image: mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: 123456
|
||||
MYSQL_DATABASE: fastapi-admin
|
||||
healthcheck:
|
||||
test: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 10
|
||||
api:
|
||||
build: .
|
||||
restart: always
|
||||
environment:
|
||||
DATABASE_URL: mysql://root:123456@mysql:3306/fastapi-admin
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user