files.gallary Docker

files.gallary PHP应用的Docker版本

官网:files.gallary

部署:

  • 安装Docker

    1
    wget -qO- get.docker.com | bash
  • 安装Docker-Compose

    1
    apt install docker-compose
  • 克隆仓库

    1
    git clone https://github.com/RealXLFD/files.gallery-docker.git
  • 使用docker-compose部署

    1
    2
    cd files.gallery-docker/
    docker-compose up -d

配置:

  • 修改运行端口:nano docker-compose.yml
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    version: '3.8'
    services:
    nginx:
    image: library/nginx:1.19-alpine
    container_name: "charlie_nginx"
    ports:
    - 8384:80 # 修改前方的'8384'
    user: "0:0"
    volumes:
    - "./nginx.conf:/etc/nginx/conf.d/default.conf"
    - "./app:/var/www/html"
    links:
    - php
    php:
    image: "charlie_php"
    build: ./php
    user: "0:0"
    environment:
    - PUID=0
    - PGID=0
    container_name: "charlie_php"
    volumes:
    - "./app:/var/www/html"
  • 修改配置文件: nano ./app/_files/config/config.php

    具体参考 files.gallary官网配置说明