Compare commits
1 Commits
develop
...
production
Author | SHA1 | Date | |
---|---|---|---|
6bb6c57155 |
29
README.md
29
README.md
|
@ -4,33 +4,6 @@
|
|||
|
||||
_Frontend designed for Paysite leaking._
|
||||
|
||||
[![Button Website]][Website]
|
||||
|
||||
[![Button Setup]](#setup)
|
||||
[![Button FAQ]][FAQ]
|
||||
|
||||
[![Button Develop]][Develop]
|
||||
|
||||
<img src="docs/resources/Preview.png" width="700" />
|
||||
|
||||
## Setup
|
||||
|
||||
_How to use this project for yourself._
|
||||
|
||||
1. Clone the repository and switch to its folder.
|
||||
|
||||
```sh
|
||||
git clone https://code.kemono.su/Kemono2
|
||||
cd Kemono2
|
||||
```
|
||||
|
||||
[Website]: https://kemono.party/
|
||||
[Develop]: docs/Develop.md
|
||||
[FAQ]: docs/FAQ.md
|
||||
|
||||
<!---------------------------------[ Buttons ]--------------------------------->
|
||||
|
||||
[Button Website]: https://img.shields.io/badge/Website-e6702f?style=for-the-badge&logoColor=white&logo=FirefoxBrowser
|
||||
[Button Develop]: https://img.shields.io/badge/Develop-3955A3?style=for-the-badge&logoColor=white&logo=VisualStudioCode
|
||||
[Button Setup]: https://img.shields.io/badge/Setup-3EAAAF?style=for-the-badge&logoColor=white&logo=GitBook
|
||||
[Button FAQ]: https://img.shields.io/badge/FAQ-569A31?style=for-the-badge&logoColor=white&logo=AskUbuntu
|
||||
[Website]: https://kemono.su/
|
||||
|
|
78
docker-compose.yml
Normal file
78
docker-compose.yml
Normal file
|
@ -0,0 +1,78 @@
|
|||
version: '3'
|
||||
services:
|
||||
postgres:
|
||||
image: groonga/pgroonga:3.1.6-alpine-16-slim
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_DB=kemono
|
||||
- POSTGRES_USER=kemono
|
||||
- POSTGRES_PASSWORD=kemono
|
||||
volumes:
|
||||
- ./storage/postgres:/var/lib/postgresql/data
|
||||
command: ["postgres", "-c", "log_statement=all"]
|
||||
ports:
|
||||
- '15432:5432'
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: always
|
||||
ports:
|
||||
- '16379:6379'
|
||||
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
GIT_COMMIT_HASH: "custom"
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- KEMONO_SITE=http://localhost:5000
|
||||
- UPLOAD_LIMIT=2000000000
|
||||
- ARCHIVERHOST=kemono-archiver
|
||||
- ARCHIVERPORT=80
|
||||
- PYTHONUNBUFFERED=1
|
||||
- KEMONO_CONFIG=config.example.json
|
||||
- PYTHONPATH=/app
|
||||
volumes:
|
||||
- ./:/app
|
||||
- ./storage/files:/storage
|
||||
sysctls:
|
||||
net.core.somaxconn: 2000
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost:80" ]
|
||||
interval: 60s
|
||||
timeout: 2m
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
command:
|
||||
[ "python", "-m", "src", "run" ]
|
||||
|
||||
nginx:
|
||||
image: nginx
|
||||
depends_on:
|
||||
- web
|
||||
ports:
|
||||
- '5000:80'
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./storage/files:/storage
|
||||
- ./:/app
|
||||
|
||||
webpack:
|
||||
build:
|
||||
context: .
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- KEMONO_SITE=http://localhost:5000
|
||||
- KEMONO_CONFIG=config.example.json
|
||||
- PYTHONPATH=/app
|
||||
volumes:
|
||||
- .:/app
|
||||
command:
|
||||
[ "python", "-m", "src", "webpack" ]
|
Loading…
Reference in New Issue
Block a user