This file contains 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
REGISTRY_PATH=registry.domain.tld | |
TAG_PHP=7.2 | |
TAG_NGINX=1.17.5 | |
HTTP_PORT=2000 | |
REPLICA_COUNT_PHP=3 | |
REPLICA_COUNT_NGINX=3 | |
DATABASE_NETWORK=mysql-005 | |
NGINX_MEM_LIMIT=215M | |
PHP_MEM_LIMIT=2G |
This file contains 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: '3.5' | |
services: | |
# Php service configuration | |
php: | |
image: ${REGISTRY_PATH}/php:${TAG_PHP} | |
networks: | |
- default | |
- database | |
environment: | |
MEMORY_LIMIT: "${MEMORY_LIMIT}" |
This file contains 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
REGISTRY_PATH=registry.domain.tld | |
TAG_PHP=7.2 | |
TAG_NGINX=1.17.5 | |
HTTP_PORT=2000 | |
REPLICA_COUNT_PHP=3 | |
REPLICA_COUNT_NGINX=3 | |
DATABASE_NETWORK=mysql-005 | |
NGINX_MEM_LIMIT=215M | |
PHP_MEM_LIMIT=2G | |
MEMORY_LIMIT=2G |
This file contains 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
server { | |
server_name www.example.com; | |
listen 80 ; | |
access_log /var/log/nginx/access.log vhost; | |
return 301 https://$host$request_uri; | |
} |
This file contains 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
FROM ubuntu:14.04 | |
MAINTAINER Yannick PEREIRA-REIS <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y --force-yes \ | |
build-essential \ | |
git \ | |
curl \ | |
php5 \ |
This file contains 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
FROM ubuntu:14.04 | |
MAINTAINER Yannick PEREIRA-REIS <[email protected]> |
This file contains 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
wait_single_host() { | |
local host=$1 | |
shift | |
local port=$1 | |
shift | |
echo "==> Check host ${host}:${port}" | |
while ! nc ${host} ${port} > /dev/null 2>&1 < /dev/null; do echo " --> Waiting for ${host}:${port}" && sleep 1; done; | |
} |
This file contains 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
[alias] | |
stashstash = "!f() { STASH=$(git stash); echo \"\\033[0;31mKouroukoukou roukoukou stash stash\\033[0m\"; echo \"$STASH\"; open \"http://www.youtube.com/watch?v=LpE1bJp8-4w&feature=youtu.be&t=47s\" > /dev/null 2>&1 & }; f" | |
satsh = !git stashstash |