zoukankan      html  css  js  c++  java
  • docker-compose.yml 项目部署说明

    #项目文件.yml示例
    version: '3.4' services: fire.api: image: fireapi:1.0 container_name: fireapi build: context: ./storage/fireapi dockerfile: Dockerfile ports: - 11001:80 environment: TZ: Asia/Shanghai LANG: zh_CN.UTF-8 restart: always fire.miniprogram: image: fireminiprogram:1.0 container_name: fireminiprogram build: context: ./storage/fireminiprogram dockerfile: Dockerfile ports: - 8000:80 environment: TZ: Asia/Shanghai LANG: zh_CN.UTF-8 restart: always fire.redis: image: redis:6.0 container_name: fireredis ports: - 6379:6379 command: redis-server /etc/redis.conf volumes: - /app/storage/redis/redis.conf:/etc/redis.conf:rw - /app/storage/redis/data:/data:rw environment: TZ: Asia/Shanghai LANG: zh_CN.UTF-8 restart: always fire.nginx: image: nginx:1.19 container_name: firenginx ports: - 80:80 - 443:443 volumes: - /app/storage/nginx/nginx.conf:/etc/nginx/nginx.conf - /app/storage/nginx/cert:/etc/nginx/cert #- /app/storage/nginx/log:/var/log/nginx #- /app/storage/nginx/html:/usr/share/nginx/html environment: TZ: Asia/Shanghai LANG: zh_CN.UTF-8 restart: always

    注:特别注意格式要对齐,不然会报错。

  • 相关阅读:
    php中的多态
    面向对象的继承与组合
    PHP中的__call和__callStatic方法
    PHP中的__set和__get方法
    PHP中对象的本质
    mysql字符串查找(统计客源)
    linux查看文件大小
    mysql常用字符串操作函数大全,以及实例
    mysql滑动订单问题
    mysql列反转Pivoting
  • 原文地址:https://www.cnblogs.com/yf1011/p/14539021.html
Copyright © 2011-2022 走看看