编辑
2023-08-14
笔记
0

目录

docker-compose 安装部署

docker-compose 安装部署

  • docker-compose.yml

版本 18.5 +

yaml
version: "3" services: caddy: container_name: caddy image: caddy:alpine restart: unless-stopped ports: - "80:80" - "80:80/udp" - "443:443" - "443:443/udp" volumes: - ./Caddyfile:/etc/caddy/Caddyfile zentao: image: hub.zentao.net/app/zentao:18.6 container_name: zentao restart: unless-stopped environment: - MYSQL_INTERNAL=true volumes: - ./zentao:/data

版本 18.4 -

yaml
version: "3" services: caddy: container_name: caddy image: caddy:alpine restart: unless-stopped ports: - "80:80" - "80:80/udp" - "443:443" - "443:443/udp" volumes: - ./Caddyfile:/etc/caddy/Caddyfile zentao: # image: easysoft/zentao:18.4 image: hub.zentao.net/app/zentao:18.4 container_name: zentao restart: unless-stopped environment: - MYSQL_ROOT_PASSWORD=zentaopms volumes: - './zentaopms:/www/zentaopms' - './mysql:/var/lib/mysql'
  • Caddyfile
Caddyfile
zentao.uing.vip { log { output stdout format console level ERROR } reverse_proxy zentao:80 }

本文作者:菜鸟

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 许可协议。转载请注明出处!