Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

data_report / data-report

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • data-report
  • data-process
  • docker-compose.yml
  • zhouhaibao's avatar
    config(data-process): 使用环境变量配置端口映射 · 145d72a8 ...
    - 将硬编码的端口映射改为使用 ${PORT} 环境变量
    - 移除 .env.custom 文件引用,改用 environment 配置
    zhouhaibao committed Aug 18, 2026
    145d72a8
docker-compose.yml 480 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
version: '3.8'

services:
  data-process:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: data-process
    ports:
      - "${PORT}:5000"
    env_file:
      - .env.custom
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - ./uploads:/app/uploads
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
    restart: unless-stopped
    network_mode: bridge
    extra_hosts:
      - "host.docker.internal:host-gateway"