Skip to content

Instantly share code, notes, and snippets.

View fdimuccio's full-sized avatar

Francesco Di Muccio fdimuccio

  • Truecaller
  • Stockholm
View GitHub Profile
@fdimuccio
fdimuccio / README.md
Created June 5, 2024 14:13 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
#!/bin/sh
yum update -y
wget "http://www.haproxy.org/download/1.5/src/haproxy-1.5.3.tar.gz"
yum groupinstall -y 'Development Tools'
yum install -y openssl-devel
yum install -y rpmdevtools pcre-devel
rpmdev-setuptree
mv haproxy-1.5.3.tar.gz ~/rpmbuild/SOURCES/
git clone git://github.com/bluerail/haproxy-centos.git
package controllers
import play.api._
import play.api.mvc._
import scala.concurrent.duration._
import akka.actor.{Actor, Props}
import play.api.libs.concurrent.Akka
import play.api.libs.concurrent.Execution.Implicits._
import controllers._
import akka.pattern.ask