diff options
| author | iCrawl <[email protected]> | 2020-12-24 20:16:00 +0100 |
|---|---|---|
| committer | iCrawl <[email protected]> | 2020-12-26 21:00:53 +0100 |
| commit | 5d2d46d8dca912614d6893a9f3ff30a487e76a77 (patch) | |
| tree | 7d45769f3c88aa6346483abcaa4370f67fced603 /docker/docker-compose.yml | |
| parent | Merge pull request #230 from WeebDev/fix/chunk-uploads (diff) | |
| download | host.fuwn.me-5d2d46d8dca912614d6893a9f3ff30a487e76a77.tar.xz host.fuwn.me-5d2d46d8dca912614d6893a9f3ff30a487e76a77.zip | |
add docker support
Diffstat (limited to 'docker/docker-compose.yml')
| -rw-r--r-- | docker/docker-compose.yml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..fc44689 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,63 @@ +version: "3.7" + +services: + nginx: + build: + context: ./nginx + dockerfile: Dockerfile + expose: + - "80" + - "443" + ports: + - "80:80" + - "443:443" + restart: unless-stopped + healthcheck: + test: ["CMD", "service", "nginx", "status"] + interval: 60s + timeout: 5s + + chibisafe: + build: + context: ../ + dockerfile: ./docker/chibisafe/Dockerfile + expose: + - "5000" + - "5001" + ports: + - "5000" + - "5001" + restart: unless-stopped + environment: + CHUNK_SIZE: 90 + ROUTE_PREFIX: /api + RATE_LIMIT_WINDOW: 2 + RATE_LIMIT_MAX: 5 + BLOCKED_EXTENSIONS: ".jar,.exe,.msi,.com,.bat,.cmd,.scr,.ps1,.sh" + UPLOAD_FOLDER: uploads + SECRET: "" + MAX_LINKS_PER_ALBUM: 5 + META_THEME_COLOR: "#20222b" + META_DESCRIPTION: "Blazing fast file uploader and bunker written in node! 🚀" + META_KEYWORDS: "chibisafe,upload,uploader,file,vue,images,ssr,file uploader,free" + META_TWITTER_HANDLE: "" + SERVER_PORT: 5000 + WEBSITE_PORT: 5001 + DOMAIN: "http://chibisafe.moe" + SERVICE_NAME: chibisafe + MAX_SIZE: 5000 + GENERATE_THUMBNAILS: "true" + GENERATE_ZIPS: "true" + STRIP_EXIF: "true" + SERVE_WITH_NODE: "true" + GENERATED_FILENAME_LENGTH: 6 + GENERATED_ALBUM_LENGTH: 4 + PUBLIC_MODE: "false" + USER_ACCOUNTS: "true" + ADMIN_ACCOUNT: "" + ADMIN_PASSWORD: "" + DB_CLIENT: "sqlite3" + DB_HOST: "" + DB_USER: "" + DB_PASSWORD: "" + DB_DATABASE: "" |