In this tutorial, we will show you how to install Grocy on Fedora CoreOS latest. Grocy is a free web-based application that helps you manage your groceries and keep track of expiry dates, shopping lists, inventory, and more.
Grocy is a containerized application, so you will need to install Docker on your server. Run the following command to install Docker:
sudo dnf install docker
Once the installation is complete, start the Docker service:
sudo systemctl start docker.service
Next, pull the Grocy image from the Docker Hub. Run the following command to download the latest version:
sudo docker pull linuxserver/grocy
Create a Docker Compose file that defines the Grocy container configuration. Run the following command to create a new file named grocy-docker-compose.yml
:
sudo nano grocy-docker-compose.yml
Copy and paste the following code into the file:
version: "3"
services:
grocy:
image: linuxserver/grocy
container_name: grocy
restart: always
ports:
- 8080:80
environment:
- TZ=America/New_York
volumes:
- ~/grocy:/config
Save and close the file (press Ctrl + X
, Y
, then Enter
).
This Compose file will create a Grocy container with the name grocy
, exposing the application on port 8080
. It sets the time zone environment variable to America/New_York
and maps the data directory ~/grocy
to the container's /config
folder.
Launch the Grocy container by running the following command:
sudo docker-compose -f grocy-docker-compose.yml up -d
This command will start the Grocy container in the background and print the container ID. You should see a message similar to the following:
Creating grocy ... done
Finally, open your web browser and navigate to http://<your-server-ip>:8080
. The Grocy login page should appear.
Log in using the default login credentials:
You should now see the Grocy dashboard, where you can manage your groceries, shopping lists, and inventory, as well as keep track of expiry dates and more.
In this tutorial, we have shown you how to install Grocy on Fedora CoreOS using Docker. You can now start managing your groceries and keeping track of everything with Grocy.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!