Skip to content

Instantly share code, notes, and snippets.

version: '2'
networks:
nginx:
services:
nginx-proxy:
container_name: nginx-proxy
image: jwilder/nginx-proxy:alpine
restart: always
environment:
#!/usr/bin/env bash
# wrapper script to check if mysql is up and then start service
# after 3 successful attempets or exit after timeout.
HOST=$1
shift
TIMEOUT=$1
shift
CMD=$@