Merge pull request #70 from Milanzor/remove-db-port-exposure

Remove db port exposure from the docker-compose.yml
This commit is contained in:
Maximilian Dorninger
2025-07-18 18:24:46 +02:00
committed by GitHub
3 changed files with 18 additions and 15 deletions

View File

@@ -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>&nbsp;&nbsp;
<a href="https://github.com/ldrrp"><img src="https://github.com/ldrrp.png" width="80px" alt="Luis Rodriguez" /></a>&nbsp;&nbsp;
<!-- ROADMAP -->
## Roadmap
- [x] support for more torrent indexers
@@ -94,7 +95,6 @@ See the [open issues](hhttps://maxdorninger.github.io/MediaManager/issues) for a
![Screenshot 2025-07-02 174416](https://github.com/user-attachments/assets/0d50f53b-64da-4243-8408-1d6fc85fe81b)
![Screenshot 2025-06-28 222908](https://github.com/user-attachments/assets/193e1afd-dabb-42a2-ab28-59f2784371c7)
## 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
View File

@@ -0,0 +1,4 @@
services:
db:
ports:
- "5432:5432"

View File

@@ -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"