Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minio changes #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ Run script to clone required repositories.
```shell
./init-script.sh
```

Run minio and create an access key and a secret key (default in `dev` config is `minio` and `minio-client`)
```sh
docker compose up minio -d
```

http://127.0.0.1:9090/access-keys/new-account

For production, pass the Access Key and Secret Key to 925r settings (`MINIO_ACCESS_KEY` and `MINIO_SECRET_KEY` variables)

Run docker-compose command to start 925r and YaYata.
This step will perform also apply of 925r migrations.
```shell
Expand Down
32 changes: 27 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,29 @@ version: '3'
services:
ldap:
image: osixia/openldap:1.1.7

minio:
hostname: minio
container_name: minio
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio-client
- MINIO_VOLUMES=/mnt/data
volumes:
- minio:/mnt/data
ports:
- "9000:9000"
- "9090:9090"
command:
[
"minio",
"server",
"--console-address",
":9090"
]
mysql:
container_name: mysql
image: mysql:5.7
image: mysql:8.1
environment:
- MYSQL_ROOT_PASSWORD=ninetofiver
- MYSQL_DATABASE=ninetofiver
Expand All @@ -31,18 +50,20 @@ services:
build:
context: 925r
dockerfile: Dockerfile
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
# command: bash -c "python manage.py migrate && python -Wa manage.py runserver 0.0.0.0:8000"
command: bash -c "python manage.py migrate && pipenv run gunicorn --pid /run/gunicorn/ninetofiver.pid --bind 0.0.0.0:9101 --env ENVIRONMENT=production --timeout 60 --workers=5 --worker-class sync --worker-connections 1000 --access-logfile /var/log/gunicorn/access-ninetofiver.log --error-logfile /var/log/gunicorn/error-ninetofiver.log --capture-output ninetofiver.wsgi"
container_name: 925r
hostname: 925r
expose:
- "8000"
- "9101"
ports:
- "8888:8000"
- "8888:9101"
volumes:
- ./925r:/code
depends_on:
- ldap
- mysql
- minio

yayata:
container_name: yayata
Expand All @@ -63,4 +84,5 @@ services:
- 925r

volumes:
minio:
mysql: