-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
version: "3.8" | ||
|
||
services: | ||
redis: | ||
image: docker.io/redis:7-alpine | ||
restart: always | ||
container_name: verbacap-redis | ||
|
||
psql: | ||
image: docker.io/postgres:15-alpine | ||
restart: always | ||
container_name: verbacap-psql | ||
environment: | ||
POSTGRES_PASSWORD: "changeme" | ||
volumes: | ||
- ./example/psql:/var/lib/postgresql/data | ||
|
||
web: | ||
image: ghcr.io/mirio/verbacap:v1.0.0 | ||
restart: always | ||
container_name: verbacap-web | ||
command: "run" | ||
ports: | ||
- 8080:8080 | ||
depends_on: | ||
- redis | ||
- psql | ||
environment: | ||
DATABASE_URL: "postgres://postgres:changeme@verbacap-psql:5432/postgres" | ||
DJANGO_SECRET_KEY: "Chang4M4" | ||
DJANGO_DEBUG: "False" | ||
CELERY_BROKER_URL: "redis://verbacap-redis:6379/0" | ||
PERSIST_AUDIO_ROOTDIR: "/persist" | ||
volumes: | ||
- ./example/web:/persist | ||
|
||
celery: | ||
image: ghcr.io/mirio/verbacap:v1.0.0 | ||
restart: always | ||
container_name: verbacap-celery | ||
command: "celery" | ||
depends_on: | ||
- web | ||
environment: | ||
DATABASE_URL: "postgres://postgres:changeme@verbacap-psql:5432/postgres" | ||
DJANGO_SECRET_KEY: "Chang4M4" | ||
DJANGO_DEBUG: "False" | ||
CELERY_BROKER_URL: "redis://verbacap-redis:6379/0" | ||
PERSIST_AUDIO_ROOTDIR: "/persist" | ||
volumes: | ||
- ./example/web:/persist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Environment Variables | ||
|
||
| Variables | Default | Example | Description | | ||
| :--------------------------: | :-----------------------: | :------------: |:--------------------------------------------: | | ||
| DATABASE_URL | | postgres://user:password@localhost:5432/verbacap | Full Database URL | | ||
| DJANGO_SECRET_KEY | | AAAaaaA51ag9A | A secret key for a particular Django installation. This is used to provide cryptographic signing, and should be set to a unique, unpredictable value. | | ||
| DJANGO_DEBUG | False | True | A boolean that turns on/off debug mode. | | ||
| CELERY_BROKER_URL | | redis://verbacap-redis:6379/0 | Redis URL for store a celery data | | ||
| PERSIST_AUDIO_ROOTDIR | /persist/audio | /persist/audio | Persist Path to store the audio files | | ||
| DJANGO_ACCOUNT_ALLOW_REGISTRATION | False | False | A boolean that turns on/off the user registration. | | ||
| DJANGO_ALLOWED_HOSTS | example.com | example.com | Django Allowed Hosts separated by comma | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## Requirements | ||
* Postgres 15+ | ||
* Docker / Podman / ContainerD | ||
* HDD/SSD 2Gb + | ||
|
||
## Install on Docker like daemon | ||
1. Create a new user and assign full permission to the database in Postgres | ||
|
||
2. Install `docker` and `docker-compose` ([More Info](https://docs.docker.com/engine/install/)) | ||
|
||
3. Edit the `compose.yaml` and change: | ||
* `POSTGRES_USERNAME` = Insert the username for PostGres | ||
* `POSTGRES_PASSWORD` = Insert the password for PostGres | ||
* `POSTGRES_HOSTNAME` = Insert the hostname for PostGres | ||
* `CHANGEME_PERSIST_PATH` = Insert the LOCAL path to persist the data like the audio files and temporary files | ||
* `CHANGEME_SECRET` = Generate a random secret for the hashing/salting functions | ||
|
||
4. Start the containers | ||
``` | ||
docker compose up -d | ||
``` | ||
|
||
5. Wait until the container is ready | ||
``` | ||
docker logs -f verbacap-web | ||
``` | ||
Wait until you can see `Listening at: http://0.0.0.0:8000` | ||
|
||
6. Create a super admin user using: | ||
``` | ||
docker exec -it verbacap-web /entrypoint.bash createadminuser | ||
``` | ||
Insert the user and password of the super admin | ||
|
||
7. Open your browser to [http://127.0.0.1:8080/](http://127.0.0.1:8080/) | ||
|
||
8. Login with the super admin credential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters