Skip to content

3.4.1

Latest
Compare
Choose a tag to compare
@LucienShui LucienShui released this 07 Oct 08:54
· 5 commits to main since this release
1175587

Changes

Frontend

[email protected]

  • 精简、优化代码
  • 适配后端 3.5.1 版本

Backend

[email protected]

  • 将过期时间的单位由分钟改为秒
  • 一些依赖升级
  • 精简、优化代码

Docker Compose

version: "3"

services:
  pasteme-frontend:
    image: pasteme/frontend:3.4.1
    container_name: pasteme-frontend
    depends_on:
      - pasteme-backend
    healthcheck:
      test: ["CMD", "curl", "-so", "/dev/null", "localhost:8080/usr/config.json"]
      interval: 45s
      timeout: 3s
      retries: 3
    restart: always
    ports:
      - 80:8080
    volumes:
      - ./data/nginx-logs/:/var/lib/pasteme/
      - ./data/frontend-usr/:/www/pasteme/usr/

  pasteme-backend:
    image: pasteme/go-backend:3.5.1
    container_name: pasteme-backend
    depends_on:
      - pasteme-mysql
    healthcheck:
      test: ["CMD", "wget", "-O", "/dev/null", "localhost:8000/api/v3/?method=beat"]
      interval: 45s
      timeout: 3s
      retries: 3
    restart: always
    volumes:
      - ./data/backend-config/:/etc/pastemed/
    logging:
      driver: "json-file"
      options:
        max-file: "3"
        max-size: "128m"

  pasteme-mysql:
    image: mysql:5.5
    container_name: pasteme-mysql
    healthcheck:
      test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
      interval: 45s
      timeout: 3s
      retries: 3
    restart: always
    command: [
      '--character-set-server=utf8mb4',
      '--collation-server=utf8mb4_unicode_ci'
    ]
    environment:
      MYSQL_USER: username
      MYSQL_PASSWORD: password
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: pasteme
      MYSQL_MAX_ALLOWED_PACKET: 128M
      MYSQL_INNODB_LOG_FILE_SIZE: 64M
    volumes:
      - ./data/mysql:/var/lib/mysql
    logging:
      driver: "json-file"
      options:
        max-file: "3"
        max-size: "128m"