# /usr/local/bin/docker-compose -f /docs/dev-ops/environment/environment-docker-compose-2.4.yml up -d version: '3.8' # docker-compose -f docker-compose-app.yml up -d # 你需要修改system为你自身系统的仓库名 services: weform-run: image: system/weform-run container_name: weform-run restart: on-failure ports: - "8080:8080" environment: - TZ=PRC - SERVER_PORT=8080 volumes: - ./log:/data/log - ./upload:/upload logging: driver: "json-file" options: max-size: "10m" max-file: "3" networks: - my-network # Admin前端服务 admin-fronted: image: nginx:alpine container_name: admin-fronted restart: on-failure ports: - "8848:80" volumes: - ./nginx/Admin-fronted/dist:/usr/share/nginx/html:ro - ./nginx/Admin-fronted/nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - weform-run networks: - my-network logging: driver: "json-file" options: max-size: "10m" max-file: "3" # Client前端服务 client-fronted: image: nginx:alpine container_name: client-fronted restart: on-failure ports: - "80:80" volumes: - ./nginx/Client-fronted/dist:/usr/share/nginx/html:ro - ./nginx/Client-fronted/nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - weform-run networks: - my-network logging: driver: "json-file" options: max-size: "10m" max-file: "3" networks: my-network: driver: bridge