This commit is contained in:
2025-03-30 22:11:50 +08:00
parent 46e0383736
commit b7b541d937
6 changed files with 114 additions and 5 deletions
@@ -0,0 +1,28 @@
version: '3'
services:
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: frontend
ports:
- "8080:8080"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
restart: always
networks:
- app-network
# 如果有后端服务,可以添加依赖
# depends_on:
# - backend
# 如果有后端服务,可以添加后端服务配置
# backend:
# image: your-backend-image
# container_name: backend
# networks:
# - app-network
networks:
app-network:
driver: bridge