Can Guix Replace Docker Compose?

News

Guix and Docker, Better Together?

Here's the configuration we were working on:

(services (list
           (service oci-container-service-type
                    (list
                     (oci-container-configuration
                      (image "postgres")
                      (provision "postgres")
                      (ports
                       '(("5432" . "5432")))
                      (environment
                       '(("POSTGRES_PASSWORD" . "hello"))))
                     (oci-container-configuration
                      (image "boxinaclosedbox/forgejo")
                      (provision "forgejo")
                      (ports
                       '(("8081" . "3000")
                         ("222" . "22")))
                      (volumes
                       '("/var/run/forgejo:/data"
                         "/etc/timezone:/etc/timezone:ro"
                         "/etc/localtime:/etc/localtime:ro")))))))

Enjoyed this stream? Explore our hands-on courses for deeper, structured learning on Guile Scheme and more.

Get the System Crafters Newsletter
Updates on open source tools, tutorials, and community projects. We'll also occasionally let you know about new courses and resources.
Name (optional)
Email Address