[新服务] docker-compose部署easyimage图床

date
Feb 14, 2023
slug
newservice-docker-easyimage
status
Published
summary
新服务 图床 easyimage
tags
service
type
Post
URL

Summary

notion image

步骤

export DOCKER_PROJ=easyimage
mkdir /data/$DOCKER_PROJ; cd /data/$DOCKER_PROJ

cat > docker-compose.yml <<EOF
version: '3.3'
services:
  easyimage:
    image: ddsderek/easyimage:latest
    container_name: easyimage
    #ports:
    #  - '8080:80'
    environment:
      - TZ=Asia/Shanghai
      - PUID=1000
      - PGID=1000
    volumes:
      - './config:/app/web/config'
      - './data:/app/web/i'
    restart: unless-stopped
networks:
  default:
    name: npm_nginx_proxy_manager-network
    external: true
EOF

docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f

升级换代

docker-compose pull
docker-compose up -d

验证

 

© Ying Bun 2021 - 2024