mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 21:54:00 +02:00
Merge pull request #70 from Milanzor/remove-db-port-exposure
Remove db port exposure from the docker-compose.yml
This commit is contained in:
17
README.md
17
README.md
@@ -47,13 +47,14 @@ docker compose up -d
|
||||
<img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" >
|
||||
</a>
|
||||
|
||||
|
||||
## Check out the awesome sponsors of MediaManager ❤️
|
||||
|
||||
<a href="https://fosstodon.org/@aljazmerzen"><img src="https://github.com/aljazerzen.png" width="80px" alt="Aljaž Mur Eržen" /></a>
|
||||
<a href="https://github.com/ldrrp"><img src="https://github.com/ldrrp.png" width="80px" alt="Luis Rodriguez" /></a>
|
||||
|
||||
|
||||
<!-- ROADMAP -->
|
||||
|
||||
## Roadmap
|
||||
|
||||
- [x] support for more torrent indexers
|
||||
@@ -94,7 +95,6 @@ See the [open issues](hhttps://maxdorninger.github.io/MediaManager/issues) for a
|
||||

|
||||

|
||||
|
||||
|
||||
## Developer Quick Start
|
||||
|
||||
```bash
|
||||
@@ -103,8 +103,9 @@ See the [open issues](hhttps://maxdorninger.github.io/MediaManager/issues) for a
|
||||
# Activate the virtual environment
|
||||
uv pip install -e .
|
||||
```
|
||||
|
||||
```bash
|
||||
docker compose up db -d
|
||||
docker compose -f docker-compose.yaml -f docker-compose.dev.yaml up db -d
|
||||
```
|
||||
|
||||
```bash
|
||||
@@ -114,26 +115,28 @@ uv run alembic upgrade head
|
||||
### Get the frontend up and running
|
||||
|
||||
```bash
|
||||
cd /web && npm install
|
||||
cd ./web && npm install
|
||||
```
|
||||
|
||||
### Now start the backend and frontend
|
||||
|
||||
```bash
|
||||
fastapi dev /media_manager/main.py --reload --host
|
||||
fastapi dev ./media_manager/main.py --reload --host
|
||||
```
|
||||
|
||||
```bash
|
||||
cd /web && npm run dev
|
||||
cd ./web && npm run dev
|
||||
```
|
||||
|
||||
|
||||
<!-- LICENSE -->
|
||||
|
||||
## License
|
||||
|
||||
Distributed under the AGPL 3.0. See `LICENSE.txt` for more information.
|
||||
|
||||
|
||||
<!-- ACKNOWLEDGMENTS -->
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
* [Thanks to Pawel Czerwinski for the image on the login screen](https://unsplash.com/@pawel_czerwinski)
|
||||
|
||||
4
docker-compose.dev.yaml
Normal file
4
docker-compose.dev.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
db:
|
||||
ports:
|
||||
- "5432:5432"
|
||||
@@ -18,15 +18,11 @@ services:
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
environment:
|
||||
POSTGRES_USER: MediaManager
|
||||
POSTGRES_DB: MediaManager
|
||||
POSTGRES_PASSWORD: MediaManager
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user