先介绍一下我的方案,使用官方的镜像,其中包含图床容器,以及数据库,两个容器,宿主机开启Nginx,反向代理,并申请证书开启HTTPS。群晖中的安装直接参考:http://www.nasyun.com/thread-64644-1-5.html
1. 拉取相关容器
首先使用Docker compose,Docker Hub地址:https://hub.docker.com/r/nmtan/chevereto
version: '3'
services:
db:
image: mariadb
volumes:
- database:/var/lib/mysql:rw
restart: always
networks:
- private
environment:
MYSQL_ROOT_PASSWORD: chevereto_root
MYSQL_DATABASE: chevereto
MYSQL_USER: chevereto
MYSQL_PASSWORD: chevereto
chevereto:
depends_on:
- db
image: nmtan/chevereto
restart: always
networks:
- private
environment:
CHEVERETO_DB_HOST: db
CHEVERETO_DB_USERNAME: chevereto
CHEVERETO_DB_PASSWORD: chevereto
CHEVERETO_DB_NAME: chevereto
CHEVERETO_DB_PREFIX: