A minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES. https://privatebin.info
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
转到文件
Andy 70c88ef9c7
bump versions
2 年前
etc refactor, cleanup and strip off the nginx 4 年前
.dockerignore Updating documentation 6 年前
.drone.yml add Drone CI 1.1 5 年前
Dockerfile bump versions 2 年前
README.md refactor, cleanup and strip off the nginx 4 年前

README.md

PrivateBin in docker

docker-compose.yml example

This will automatically populate the data under the /srv/data/privatebin/html and /srv/data/privatebin/nginx directories.

Make sure to create these directories first.

version: '3.3'

services:
  privatebin-fpm:
    image: yourrepo/privatebin:1.3.4
    restart: always
    networks:
      - backend
    volumes:
      - privatebin_html:/var/www
      - privatebin_nginx:/etc/nginx/conf.d

  privatebin-nginx:
    image: nginx:mainline-alpine
    restart: always
    networks:
      - backend
    volumes:
      - privatebin_html:/var/www
      - privatebin_nginx:/etc/nginx/conf.d
      - /srv/data/privatebin/data:/srv/data
    depends_on:
      - privatebin-fpm
    # add whatever lables/directives you need to expose your nginx container

volumes:
  privatebin_html:
    driver: local
    driver_opts:
      type: none
      device: /srv/data/privatebin/html
      o: bind

  privatebin_nginx:
    driver: local
    driver_opts:
      type: none
      device: /srv/data/privatebin/nginx
      o: bind

updating the image

Update and reset the containers

docker-compose stop privatebin-fpm privatebin-nginx
docker-compose rm -f privatebin-fpm privatebin-nginx
docker volume rm srv_privatebin_html srv_privatebin_nginx
rm -rf /srv/data/privatebin/{html,nginx}
mkdir -p /srv/data/privatebin/{html,nginx}
docker pull yourrepo/privatebin:1.3.4
docker-compose up -d