Getting Started with Docker: How Do I Set Up My First Server?

0
6
Asked By CuriousCoder87 On

I've just installed Debian Linux on a mini PC, and I have Docker and Docker Compose set up. I understand that I need a compose.yml file for each of my services, but is that all I require? Once I create the compose.yml file with all my configuration details, can I just run "docker compose up" to get everything working? Also, if I'm planning to use several compose.yml files for different services, how should I name them? Where should I save these compose.yml files? I'm not very familiar with computer science concepts, so the official documentation is a bit overwhelming for me. Any guidance would be greatly appreciated!

2 Answers

Answered By ContainerCrafter On

What containers do you plan to start with? If you have a setup similar to mine, I can share a sample compose file with you when I'm back at my laptop!

CuriousCoder87 -

I’m going to use Caddy as a reverse proxy (I’ve used it before, but not in Docker), Nextcloud for cloud storage, AdGuard for DNS, and Vaultwarden for password management, and maybe even explore more options if I find something interesting.

Answered By DockerDabbler42 On

You can actually run multiple Docker containers from a single compose file if you prefer, but it’s perfectly fine to have separate compose.yml files for each of your apps. I typically setup a dedicated folder in my home directory, something like 'appdata'. Then, within that, I create folders for each service, like 'arrstack', 'vaultwarden', etc. Each of those folders contains its own compose.yml file. I also recommend mounting a storage path in these folders to keep all your data organized, which makes backups easier. Just keep experimenting with it – it gets clearer over time!

InnovativeUser1 -

Thank you for the info! ^-^

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.