forked from rapphy243/chibisafe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 2.41 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.7"
networks: #Add to my Nginx Network in Docker. Just makes life easier for me, and you may need to change this depending on what reverse proxy you are using.
default:
external:
name: "nginxproxymanager_default"
services:
chibisafe:
build:
context: ./
dockerfile: ./Dockerfile
image: rapphy243/chibisafe #Tag Docker Image
container_name: chibisafe #Name container name
volumes:
- ./chibisafe-data:/usr/chibisafe/uploads
- ./chibisafe-database:/usr/chibisafe/database
ports: #You still should have a reverse proxy pointing to the container. Connecting to it through localhost or any other means might/will probably give you issues.
- 5051:5000
hostname: chibisafe
restart: unless-stopped
environment:
OVERWRITE_SETTINGS: "true"
CHUNK_SIZE: 90
ROUTE_PREFIX: /api
RATE_LIMIT_WINDOW: 2
RATE_LIMIT_MAX: 5
SECRET: #"wowfcgMHqZHwOIMLadWrKu3liyqPOOILpDLSDvuxq3YGhJmiZXJCVpnF96l11WfR" <--- "openssl rand -base64 32" To Generate.
MAX_LINKS_PER_ALBUM: 5
META_THEME_COLOR: "#20222b"
META_DESCRIPTION: "Blazing fast file uploader edited by @rapphy243!🚀"
META_KEYWORDS: "chibisafe,upload,uploader,file,vue,images,ssr,file uploader"
META_TWITTER_HANDLE: "@rapphy243"
BLOCKED_EXTENSIONS: ".msi"
SERVER_PORT: 5000
DOMAIN: "https://safe.rapph.dev" #Change this to the domain you are hosting this on or you will get network errors when trying to login.
SERVICE_NAME: rapphsafe
MAX_SIZE: 72727
GENERATE_THUMBNAILS: "true"
GENERATE_ZIPS: "true"
STRIP_EXIF: "false" #Recommended to keep true.
SERVE_WITH_NODE: "true"
GENERATED_FILENAME_LENGTH: 10
GENERATED_ALBUM_LENGTH: 6
PUBLIC_MODE: "false"
USER_ACCOUNTS: "true"
ADMIN_ACCOUNT: #"admin"
ADMIN_PASSWORD: #"admin"
DB_CLIENT: "sqlite3" #You probably should be running a external DB, but there is one already part of the container. Also there is an issue with Chibisafe duplicating db entries in docker, but seems to work fine in production.
DB_HOST: ""
DB_USER: ""
DB_PASSWORD: ""
DB_DATABASE: ""