version: "3"
services:
fastapi_admin_app:
image: fasd920919805-docker.pkg.coding.net/fastapi_test/fastapi_test_docker/fastapi-admin-docker-image:developer-47b79ec4cd76bac743ae991b4ea22ead158d8fb1
ports:
- "7000:7000"
depends_on:
- redis
- mysql
- rabbitmq
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- DB_BASE_HOST=mysql
- DB_BASE_PORT=3306
- RQ_HOST=rabbitmq
- RQ_PORT=5672
networks:
- fastapi-admin-network
redis:
image: redis:latest
ports:
- "6389:6379"
networks:
- fastapi-admin-network
# 添加mysql8.0.27版本镜像,保留楼端口3406:3306,默认密码123456
mysql:
image: mysql:8.0.27
ports:
- "3406:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=sqlmodel
networks:
- fastapi-admin-network
# rabbitmq rabbitmq:3-management镜像 暴露端口5672:5672,15672:15672
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
networks:
- fastapi-admin-network
networks:
fastapi-admin-network:
我也遇到了这个问题,您发的compose文件可以拉取,但是我自己写的就是一闪而过,提示部署成功,但是容器为0,没有拉取镜像 |