Commit Graph

22 Commits

Author SHA1 Message Date
Michael 18ad58fd68 sintonia docker fix: dev container startup 2025-02-03 15:48:35 +01:00
Michael 35043d436f Dockerfile + docker-compose add: add dev sintonia_webapp container 2025-01-23 13:49:55 +01:00
Cristian Oneț 9684214425
perf: optimize the rabbitmq health check (#3037)
### Description

Running `rabbitmq-diagnostics` every 30s is a resource intensive
operation wasting cpu cycles.
2024-06-22 18:10:55 +02:00
Jonas L fb0584b021
fix: remove obsolete docker compose version (#2982)
### Description

```
WARN[0000] /home/jo/code/github.com/libretime/libretime/docker-compose.yml: `version` is obsolete 
WARN[0000] /home/jo/code/github.com/libretime/libretime/docker-compose.override.yml: `version` is obsolete 
```
2024-04-13 14:37:04 +02:00
Keoni Mahelona 634e6e236d
fix: incorrect docker compose version (#2975)
### Description

There is no docker compose file version 3.9, see
https://docs.docker.com/compose/compose-file/compose-versioning/. The
`init` command is used in the compose file and I wonder if we can set
this to 3.7. When I followed the docs here
https://libretime.org/docs/admin-manual/install/install-using-docker/, I
was unable to get the docker compose to work because of a version issue.
So I upgraded docker (on Ubuntu focal) but realised that 3.9 isn't even
mentioned on the Docker website. 3.8 is, which I tried to use but it
failed. 3.7 worked for me.

**I have updated the documentation to reflect these changes**:

Docs are not affected.

### Testing Notes

**What I did:**

I was following the
[docs](https://libretime.org/docs/admin-manual/install/install-using-docker/)
but then rand into a docker compose file version error. I'm using docker
engine version 26,

```
Client: Docker Engine - Community
 Version:           26.0.0
 API version:       1.45
 Go version:        go1.21.8
 Git commit:        2ae903e
 Built:             Wed Mar 20 15:17:51 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          26.0.0
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.8
  Git commit:       8b79278
  Built:            Wed Mar 20 15:17:51 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Ubuntu Version
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.6 LTS
Release:	20.04
Codename:	focal
```

which is very recent. When I checked the docker compose version
[page](https://docs.docker.com/compose/compose-file/compose-versioning/),
it doesn't even list 3.9 as a version, only 3.8. For whatever reason 3.8
did not work for me, but 3.7 does.

**How you can replicate my testing:**

Follow the docs,
https://libretime.org/docs/admin-manual/install/install-using-docker/.
If docker compose fails to run, and says
```
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
```
then change the version to 3.7.

### **Links**

N/A
2024-03-26 10:29:16 +01:00
renovate[bot] 9ef153fc6b
chore(deps): update rabbitmq docker tag to v3.13 (#2962)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| rabbitmq | minor | `3.12-alpine` -> `3.13-alpine` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 05:39:10 +00:00
Jonas L 4603c1759f
feat!: use nginx to serve media files (#2860)
Closes #2522

To reduce the strain on the API service, we moved the media file serving
to the Nginx web server. The API is still handling the authentication,
but delegates the serving using the `X-Accel-Redirect` header.

BREAKING CHANGE: The media file serving is now handled by Nginx instead
of the API service. The `storage.path` field is now used in the Nginx
configuration, so make sure to update the Nginx configuration file if
you change it.
2023-12-30 18:59:15 +01:00
Jonas L f72b7f9c97
feat(installer)!: change default listen port to 8080 (#2852)
Closes #2575
Closes #2543

BREAKING CHANGE: The default listen port for the installer is now
`8080`. We recommend that you put a reverse proxy in front of LibreTime.
2023-12-29 17:49:07 +01:00
Cristian Oneț bd6822fec6
fix: libretime process leaks and lsof high cpu usage (#2615) 2023-07-12 13:01:21 +01:00
renovate[bot] cc9a1daa7e
chore(deps): update rabbitmq docker tag to v3.12 (#2579)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 09:01:55 +02:00
jo 00ceb9bd46 fix: move docker specific setup to dockerfile 2023-03-15 11:52:00 +00:00
jo b675e04df2 fix: allow overriding docker-compose predefined environment 2023-03-15 11:52:00 +00:00
jo b87b8e5076 fix: pin rabbitmq version in docker-compose 2023-03-15 11:52:00 +00:00
jo 0bdbc0425f fix: pin postgresql version in docker-compose 2023-03-15 11:52:00 +00:00
Jonas L b85dc5bad3
feat: use libretime/icecast container image (#2165) 2022-09-20 11:35:32 +02:00
Jonas L bcb79344b8
fix: nginx depends on legacy in docker-compose (#2147) 2022-09-15 11:51:57 +02:00
Kyle Robbertze 1da42b2603 feat: add container setup
- build container with multi-stage Dockerfile
- change api listen port to 9001
2022-09-14 11:09:52 +02:00
jo cb0798edcf chore: add rabbitmq healthcheck in compose stack 2022-08-03 14:59:03 +02:00
jo 4c4d9796f5 chore: update postgres in compose stack 2022-08-03 14:59:03 +02:00
jo d5fcc5d660 chore: remove adminer from compose stack
Use other tools to connect to the database for developement.
2022-08-03 14:59:03 +02:00
Jonas L 05342e2e83
chore: add healthcheck to docker-compose stack (#1735) 2022-04-04 16:28:58 +02:00
Jonas L c6b96181ef
chore: add docker-compose dev stack (#1627) 2022-02-23 09:50:32 +02:00