Category: Technically Light

  • Deploy your WordPress site easily on levv cloud

    Deploy your WordPress site easily on levv cloud

    WordPress is the world leading Content Management System (CMS), based on PHP and MySQL.

    In this tutorial, I will show you how to deploy your WordPress site on levv cloud, the lightweight and eco-responsible cloud platform. We will also deploy a persistent database for storing your content, using MySQL backed by a persistent volume.

    Let’s dive in!

    levv cloud storage

    Prerequisites to deploy your wordpress site

    Make sure you have the latest version of the levv CLI installed and available in your $PATH. You can download and install the levv CLI here.

    If you don’t have one already, you will need to create an account on levv cloud, and authenticate using the levv auth login command.

    You will also be prompted to create a default project, which we can use to deploy our WordPress application (ours is named "wordpress-project").

    Dockerizing WordPress

    Levv cloud services are based on containers, which are lightweight and portable units of software.

    At levv, we love Alpine Linux for our containers, as it is very light and easy to use. For this tutorial, we will use the official WordPress image running PHP 8.4 on Alpine Linux.

    Creating persistent storage

    By default, container data is lost after a crash or restart. To persist the WordPress database, we will create a persistent volume.

    Run the following command to create a volume of 2Gb inside your levv project.

    $ levv volumes create --size 2 wordpress-data

    Volumes can also be defined inside the compose file. If the specified volume does not exist yet, you will be prompted to create it.

    Deploying the application

    To deploy containers, our personal favorite is the compose format because of it’s simplicity and ease of use.

    Levv cloud uses a compose-compliant specification very similar to Docker Compose to define it’s components, so if you are familiar with Docker you should find your way around pretty quickly.

    Let’s create the following YAML file and save it as levv-wordpress.yaml.

    services:
      db:
        image: mysql:8.0
        environment:
          MYSQL_DATABASE: wordpress
          MYSQL_ROOT_PASSWORD: myR00tPassw0rd4567$$$
          MYSQL_USER: wordpress
          MYSQL_PASSWORD: wordpress
        labels:
          io.levv.size: "small"
        volumes:
          - wordpress-data:/var/lib/mysql
        ports:
          - 3306:3306  # Make db accessible to the wordpress service
      wordpress:
        image: wordpress:php8.4-fpm-alpine
        deploy:
          replicas: 1
        environment:
          WORDPRESS_DB_USER: wordpress
          WORDPRESS_DB_PASSWORD: wordpress
          WORDPRESS_DB_NAME: wordpress
        labels:
          io.levv.public: "true"    
        ports:
          - 80:8080
    
    volumes:
      wordpress-data:

    This is the simplest, albeit not secure, way to deploy WordPress, so do not use this example in production.

    Note: when using the ports key, there are two key differences compared to running your compose file on your local machine:

    1. By default, and for security reasons, services are not reachable by other services at all. If you want another service within the same service to access it, you need to define the ports key.
    2. Using the ports key does not make your service available to the outside world. You need to use a label for that, as explained in the section below.

    Next, we will deploy our compose file to levv cloud :

    $ levv apply -f levv-wordpress.yaml

    Once our services have been deployed, we will see the following output in the terminal:

    No project name has been specified, your default project will be used (wordpress-project).
    Getting project volumes    successful
    Applying specification    successful
    
    SERVICE    PROJECT  REPLICAS  SIZE  PUBLIC URL                                STATUS    
    db         test     1/1       small <none>                                    DEPLOYED  
    wordpress  test     1/1       nano  https://wordpress-test-c0a0.svc.levv.io   DEPLOYED  
    

    For more information about the levv compose specification, click here.

    Exposing your application on the internet

    By default, services deployed on levv cloud are not publicly accessible.

    To expose our WordPress site to the internet, we added the io.levv.public label to the wordpress service in the compose file. As you can notice, the WordPress service does have a public URL, while the database db service does not.

    Our WordPress site will be served using HTTPS, using SSL certificates from Let’s Encrypt.

    Note: levv takes care of SSL termination. So even if you expose port 80 on the container, the service will be accessible on port 443 via it’s public URL.

    We can also link our service to a custom domain name, using the domainname attribute in the compose file.

    For example:

    service:
      wordpress:    
        labels:
          io.levv.public: "true"
        domainname: blog.mydomain.be

    We then need to add a CNAME record to our Domain Name Servers pointing towards the public URL of our WordPress service.

    Conclusion

    In this tutorial, we deployed a WordPress site to levv cloud with a single compose file.

    Here’s a recap of what we did to deploy you wordpress site :

    • Create a levv compose file to define a WordPress service and a MySQL service
    • Create a persistent volume for the database service
    • Expose our WordPress service to the world using labels and custom domain names

    As you can see, deploying service on levv is very easy and secure by design.

    If you find this article helpful, or if you have any questions related to deploying your applications on levv cloud, feel free to drop me a line in the comments below!

    Want to know more about levv’s cloud? Check our article explaining why choose an eco-friendly cloud solution like levv?

  • Why choose a sustainable cloud solution like levv?

    Why choose a sustainable cloud solution like levv?

    A cloud that’s light, sustainable, and stress-free

    What if your cloud solution could be both a technological revolution and an ally for the planet? At levv, we like things to be simple, efficient, and responsible. That’s why we designed a cloud that makes your life easier without weighing down the Earth. The result: an intuitive, sustainable, and high-performance infrastructure, built to meet both your technical and ethical needs.

    But let’s get concrete: why choose a sustainable cloud solution? And what makes levv unique? Spoiler: it all comes down to three pillars. Three ways to lighten your daily workload—and the load on our natural environment.

    cloud levv bringing lightness to tech

    1. Technically light: simplicity as the driver

    The cloud shouldn’t give you headaches. That’s why levv focuses on solutions that are both simple and powerful.

    Products designed for efficiency:

    • Containers: run your applications in an optimized environment, hassle-free.
    • Block storage: keep your critical data stored locally and reliably.
    • Object storage: share and manage your files with ease, fully S3-compatible.

    With levv, say goodbye to endless interfaces and hello to a smooth user experience. No need to decode a complex manual before you start building. You can finally focus on what matters most: your projects and your creativity.

    An interface built for developers’ needs

    We know developers love tools that just work. With levv, there’s no stress—everything is designed so you can get started right away with a sustainable cloud solution. Need to integrate an API? It’s quick and simple. Want to deploy a complex project? Our containers make it possible in just a few clicks, without the weight of traditional systems.

    Continuous innovation

    levv isn’t just another sustainable cloud solution—it’s a philosophy. We listen to our users to continuously improve our products. Regular updates, tools designed to grow with your needs… Our goal is clear: make your experience as smooth and enjoyable as possible.

    products levv

    2. Socially light: the stress-free sustainable cloud solution

    What if your infrastructure felt as comforting as a good coffee with friends?

    At levv, we don’t just reduce our carbon footprint. Our urban data centers reuse their heat to warm social housing in Brussels. Yes, you read that right: your data helps keep families warm.

    tasse de café

    A positive impact on society

    Imagine infrastructure that doesn’t just perform—it also serves a real social purpose. At levv, every decision is guided by a dual ambition: meeting our clients’ technological needs while creating value for the community. That’s what motivates us to keep pushing further.

    Security as a top priority

    Your data is hosted on European infrastructures fully compliant with GDPR. This means you benefit from a high level of protection, without compromise. By choosing levv, you ensure complete sovereignty over your data. No surprises, no stress.

    Transparency at every level

    When it comes to budget, we keep it simple: transparent pricing that’s up to 65% more affordable than the industry giants. And this isn’t about cutting corners—it’s about achieving optimal efficiency through a light, innovative infrastructure.

    3. Environmentally light: sustainability in action

    Reducing environmental impact is our mantra.

    An eco-responsible infrastructure

    Our data centers boast an exceptional PUE of 1.09, well below the European directive that sets a 1.2 target for new data centers by 2026. For context, the industry average PUE is 1.58, meaning most data centers consume far more energy to operate.

    Such a low PUE is often achieved at the cost of excessive water use or by building massive data centers with a heavy strain on the power grid. At levv, we’ve chosen another path: immersion cooling that cuts energy consumption by up to 80% while completely eliminating water usage. An approach that combines innovation, performance, and respect for the environment.

    Full transparency on carbon footprint

    With our real-time measurement tools, you always know the environmental impact of your applications. Every line of code you run on levv contributes to a circular, sustainable cloud. This transparency empowers you to make informed decisions to minimize your footprint.

    A first in the cloud industry

    Achieving a PUE of 1.09 while eliminating water usage entirely—and avoiding the need for mega data centers? That’s a first, and it’s something we’re proud of. Unlike traditional solutions that sacrifice precious resources to optimize energy efficiency, levv proves it’s possible to build a sustainable cloud solution that is high-performance, eco-friendly, and reliable—with no compromises.

    A long-term vision

    levv’s goal isn’t just to reduce its footprint in the short term, but to build a sustainable model for future generations. We embed energy efficiency and environmental responsibility directly into the solutions we develop. Every new technical advancement is designed to optimize resource use, lower energy consumption, and improve the durability of our infrastructure. That means using renewable energy, constantly refining our processes, and raising awareness among our clients about ecological challenges.

    clouds

    Choosing levv means choosing lightness!

    Opting for a sustainable cloud solution like levv is both a strategic and an ethical choice. Our three pillars—simple, stressless, sustainable—are redefining how technology can serve your business while respecting our natural environment.

    By choosing levv, you’re not just selecting a cloud solution. You’re joining a community committed to building a greener, more responsible future.

    So why not choose a lighter digital future—starting today?