Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mbornoz on github.
* I am mbornoz (https://keybase.io/mbornoz) on keybase.
* I have a public key whose fingerprint is 2DE3 0DB0 8751 E875 BD9C 3264 EEEF 8FD8 8136 0EF4
To claim this, I am signing this object:
version: '2'
services:
pga:
image: postgres
checka:
image: nginx
network_mode: "service:pga"
pgb:
version: '2'
services:
pga:
image: postgres
checka:
image: nginx
network_mode: "service:pga"
pgb:
version: "2"
services:
pg1:
container_name: pg1
image: postgres
pgcheck1:
image: camptocamp/pgcheck
container_name: pgcheck1
network_mode: "container:pg1"
restart: always
version: "2"
services:
lb:
container_name: lb
image: haproxy:1.6
ports:
- 8080:8080
- 5432:5432
- 5433:5433
links:
version: "2"
services:
lb:
container_name: lb
image: haproxy:1.6
ports:
- 8090:8080
- 5432:5432
- 5433:5433
links:
version: "2"
services:
lb:
container_name: lb
image: haproxy-postgresql
ports:
- 8080:8080
- 5432:5432
- 5433:5433
links:
version: "2"
networks:
mynet:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/24
services:
lb:
container_name: lb
postgresql-master:
image: postgres:9.5.2
volumes:
- /var/lib/postgresql/data
postgresql-master-conf:
image: camptocamp/postgres-master-conf:9.5-1
environment:
MAX_WAL_SENDERS: 20
MAX_REPLICATION_SLOTS: 20
WAL_KEEP_SEGMENTS: 10
package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r*http.Request) {
fmt.Fprintf(w, "The URL path is %s!", r.URL.Path[1:])
}