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
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
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: '3' | |
| services: | |
| # The Application | |
| brazn-php: | |
| image: restaff/brazn-php | |
| working_dir: /var/www | |
| #env_file: ./conf/web/.env | |
| volumes: | |
| - /var/www/storage | |
| environment: |
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
| FROM php:7.2-fpm | |
| LABEL maintainer="[email protected]" | |
| COPY ./brazn-php /var/www | |
| WORKDIR /var/www | |
| # Installing dependencies |
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
| FROM bitnami/mysql:latest | |
| LABEL maintainer="[email protected]" | |
| ADD ./brazn-php/docker-build/init/database/loxley_db.sql /docker-entrypoint-initdb.d |
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
| FROM nginx:1.10-alpine | |
| ADD ./conf/web/prod.vhost.conf /etc/nginx/conf.d/default.conf | |
| COPY ./brazn-php/public /var/www/public |
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
| #!/bin/bash | |
| shopt -s extglob | |
| #echo -n "Username: "; | |
| #read username; | |
| #echo -n "Password: "; | |
| #Disabling echo, so that password will not be visible on screen | |
| #read -s password | |
| #Enabling echo | |
| echo ""; | |
| echo -n "Location deploy in: "; |
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
| server { | |
| listen 80; | |
| index index.php index.html; | |
| root /var/www/public; | |
| access_log /var/log/nginx/access.log; | |
| error_log /var/log/nginx/error.log; | |
| location / { | |
| try_files $uri /index.php?$args; | |
| } |
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
| APP_NAME=Laravel | |
| APP_ENV=local | |
| APP_KEY=base64:ri2u3+89sE6+NYJcfNRJ1D9go2UktHyhFt9kDrdKvaQ= | |
| APP_DEBUG=true | |
| APP_URL=http://localhost | |
| LOG_CHANNEL=stack | |
| DB_CONNECTION=mysql | |
| DB_HOST=brazn-mysql |
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: '3' | |
| services: | |
| # Brazn PHP | |
| brazn-php: | |
| build: | |
| context: . | |
| dockerfile: prod.app.dockerfile | |
| image: restaff/brazn-php-dev | |
| 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
| #!/bin/bash | |
| shopt -s extglob | |
| echo -n "Username: "; | |
| read username; | |
| #echo -n "Password: "; | |
| #Disabling echo, so that password will not be visible on screen | |
| #read -s password | |
| #Enabling echo | |
| echo ""; | |
| echo -n "Location deploy in: "; |