This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
pga: | |
image: postgres | |
checka: | |
image: nginx | |
network_mode: "service:pga" | |
pgb: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
pga: | |
image: postgres | |
checka: | |
image: nginx | |
network_mode: "service:pga" | |
pgb: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
pg1: | |
container_name: pg1 | |
image: postgres | |
pgcheck1: | |
image: camptocamp/pgcheck | |
container_name: pgcheck1 | |
network_mode: "container:pg1" | |
restart: always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
lb: | |
container_name: lb | |
image: haproxy:1.6 | |
ports: | |
- 8080:8080 | |
- 5432:5432 | |
- 5433:5433 | |
links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
lb: | |
container_name: lb | |
image: haproxy:1.6 | |
ports: | |
- 8090:8080 | |
- 5432:5432 | |
- 5433:5433 | |
links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
lb: | |
container_name: lb | |
image: haproxy-postgresql | |
ports: | |
- 8080:8080 | |
- 5432:5432 | |
- 5433:5433 | |
links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
networks: | |
mynet: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 172.25.0.0/24 | |
services: | |
lb: | |
container_name: lb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:]) | |
} |
NewerOlder