I am a heavy user of custom apps. Now when I try to make a custom app after upgrading, I get asked for some yaml. I don’t know what to put in this yaml box. I know exactly what docker image to use, what commands, environment variables and mapped paths. Could someone please help me with this?
I just came across a video and it has that yaml.
Maybe worth a watch https://youtu.be/R0Vdj1culo0?si=26W54V-WAOz8jWp3&t=442
…also found How Compose works | Docker Docs
Note: I’ve never used any of these, but I wanted to help
the field is for a content of a docker-compose.yml file. like this example from dockerhub:
---
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
volumes:
- /path/to/jellyfin/library:/config
- /path/to/tvseries:/data/tvshows
- /path/to/movies:/data/movies
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
restart: unless-stopped
it defines the image to use, ports, storage network, env variables, labels, restart policy etc. storage mappings and in case of a multi container apps like nextcloud you could also include images for the database in one yaml and docker will spinn up both apps
Thanks so much for the help both of you! Then I can get started, I’ve used Docker Compose before. Edit: The video seems useful for knowing how to convert them.
If you know the command you’d use to launch the container, there are services to convert this into a compose file:
https://www.composerize.com/
You may also look into Portainer as an alternative to Dockge.
So I’ve changed back to 24.04 (which is a super slick experience - real nice that all my config was still there). I’ll go back and try Portainer and set them up. (But I was “lying”, I don’t actually know all the parameters. I was planning to read them from the config backup, but I just found that’s a binary file, so first I need to dump this some other way).
Just to conclude: It was a lot of work, but not more than expected. I’ve converted most of the apps. I used Portainer because the app search is strange and I didn’t think Dockge was available - but either way, Portainer is very good. I have a lot of trouble with Nextcloud from Apps, but I’ll post another question about that.