chore(docker): 调整 docker-compose 配置,优化本地依赖服务
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: peipei-redis
|
||||
ports:
|
||||
- "36379:6379"
|
||||
command: ["redis-server", "--save", "", "--appendonly", "no"]
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- peipei-network
|
||||
|
||||
peipei-backend:
|
||||
image: docker-registry.julyhaven.com/peipei/backend:latest
|
||||
container_name: peipei-backend
|
||||
platform: linux/amd64
|
||||
depends_on:
|
||||
- redis
|
||||
ports:
|
||||
- "7003:7002"
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user