mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-28 16:54:16 +00:00
clean up all unnecessary files
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
vendor
|
||||
node_modules
|
||||
|
||||
.git
|
||||
.idea
|
||||
.env
|
||||
storage/framework/cache/**
|
||||
storage/framework/sessions/**
|
||||
storage/framework/views/**
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
# Build frontend assets
|
||||
# FROM node as frontend
|
||||
# WORKDIR /app
|
||||
# ADD . /app
|
||||
# RUN npm install
|
||||
# RUN npm run production
|
||||
|
||||
# Build backend
|
||||
FROM php:7.1.3
|
||||
RUN apt-get update -y && apt-get install -y openssl zip unzip git zlib1g-dev netcat mysql-client libgd-dev libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
|
||||
RUN docker-php-ext-install pdo pdo_mysql zip gd
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
RUN chmod 755 /app/storage
|
||||
RUN chmod 777 -R /app/bootstrap/cache
|
||||
|
||||
RUN composer install
|
||||
RUN php artisan clear-compiled
|
||||
|
||||
COPY wait.sh /usr/local/bin/wait.sh
|
||||
RUN chmod +x /usr/local/bin/wait.sh
|
||||
|
||||
RUN chown -R www-data:www-data /app
|
||||
CMD /usr/local/bin/wait.sh && composer update --no-scripts && composer dumpautoload && php artisan migrate && php artisan serve --host=0.0.0.0 --port=8000
|
||||
EXPOSE 8000
|
||||
@@ -1,43 +0,0 @@
|
||||
version: '3'
|
||||
services:
|
||||
mysql:
|
||||
build:
|
||||
context: ./docker/mysql
|
||||
args:
|
||||
- MYSQL_VERSION=5.6
|
||||
environment:
|
||||
- MYSQL_DATABASE=default
|
||||
- MYSQL_USER=default
|
||||
- MYSQL_PASSWORD=secret
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- TZ=UTC
|
||||
volumes:
|
||||
- ./data/mysql:/var/lib/mysql
|
||||
- ./docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||
ports:
|
||||
- "3306:3306"
|
||||
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- .:/app
|
||||
env_file: .env
|
||||
working_dir: /app
|
||||
depends_on:
|
||||
- mysql
|
||||
links:
|
||||
- mysql
|
||||
|
||||
|
||||
phpmyadmin:
|
||||
depends_on:
|
||||
- mysql
|
||||
image: phpmyadmin/phpmyadmin
|
||||
restart: always
|
||||
ports:
|
||||
- 8090:80
|
||||
environment:
|
||||
PMA_HOST: mysql
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
@@ -1,85 +0,0 @@
|
||||
version: '2'
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
driver: bridge
|
||||
backend:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
# api
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- .:/app
|
||||
env_file: .env
|
||||
working_dir: /app
|
||||
depends_on:
|
||||
- mysql
|
||||
links:
|
||||
- mysql
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
|
||||
# caddy Server
|
||||
caddy:
|
||||
build: ./caddy
|
||||
volumes:
|
||||
- .:/var/www
|
||||
- ./caddy/Caddyfile:/etc/Caddyfile
|
||||
- ./logs/caddy:/var/log/caddy
|
||||
- ./data:/root/.caddy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
depends_on:
|
||||
- app
|
||||
|
||||
|
||||
# database
|
||||
mysql:
|
||||
build:
|
||||
context: ./docker/mysql
|
||||
args:
|
||||
- MYSQL_VERSION=5.6
|
||||
environment:
|
||||
- MYSQL_DATABASE=default
|
||||
- MYSQL_USER=default
|
||||
- MYSQL_PASSWORD=secret
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- TZ=UTC
|
||||
volumes:
|
||||
- ./data/mysql:/var/lib/mysql
|
||||
- ./docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
ports:
|
||||
- "3306:3306"
|
||||
# redis
|
||||
cache:
|
||||
image: redis:3.0-alpine
|
||||
|
||||
phpmyadmin:
|
||||
depends_on:
|
||||
- mysql
|
||||
image: phpmyadmin/phpmyadmin
|
||||
restart: always
|
||||
ports:
|
||||
- 8090:80
|
||||
environment:
|
||||
PMA_HOST: mysql
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
volumes:
|
||||
dbdata:
|
||||
@@ -1,18 +0,0 @@
|
||||
ARG MYSQL_VERSION=latest
|
||||
FROM mysql:${MYSQL_VERSION}
|
||||
|
||||
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
||||
|
||||
#####################################
|
||||
# Set Timezone
|
||||
#####################################
|
||||
|
||||
ARG TZ=UTC
|
||||
ENV TZ ${TZ}
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
RUN chown -R mysql:root /var/lib/mysql/
|
||||
|
||||
COPY my.cnf /etc/mysql/conf.d/my.cnf
|
||||
|
||||
EXPOSE 3306
|
||||
@@ -1 +0,0 @@
|
||||
*.sql
|
||||
@@ -1,28 +0,0 @@
|
||||
#
|
||||
# Copy createdb.sql.example to createdb.sql
|
||||
# then uncomment then set database name and username to create you need databases
|
||||
#
|
||||
# example: .env MYSQL_USER=appuser and need db name is myshop_db
|
||||
#
|
||||
# CREATE DATABASE IF NOT EXISTS `myshop_db` ;
|
||||
# GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ;
|
||||
#
|
||||
#
|
||||
# this sql script will auto run when the mysql container starts and the $DATA_PATH_HOST/mysql not found.
|
||||
#
|
||||
# if your $DATA_PATH_HOST/mysql exists and you do not want to delete it, you can run by manual execution:
|
||||
#
|
||||
# docker-compose exec mysql bash
|
||||
# mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql
|
||||
#
|
||||
|
||||
#CREATE DATABASE IF NOT EXISTS `dev_db_1` COLLATE 'utf8_general_ci' ;
|
||||
#GRANT ALL ON `dev_db_1`.* TO 'default'@'%' ;
|
||||
|
||||
#CREATE DATABASE IF NOT EXISTS `dev_db_2` COLLATE 'utf8_general_ci' ;
|
||||
#GRANT ALL ON `dev_db_2`.* TO 'default'@'%' ;
|
||||
|
||||
#CREATE DATABASE IF NOT EXISTS `dev_db_3` COLLATE 'utf8_general_ci' ;
|
||||
#GRANT ALL ON `dev_db_3`.* TO 'default'@'%' ;
|
||||
|
||||
FLUSH PRIVILEGES ;
|
||||
@@ -1,10 +0,0 @@
|
||||
# The MySQL Client configuration file.
|
||||
#
|
||||
# For explanations see
|
||||
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
||||
|
||||
[mysql]
|
||||
|
||||
[mysqld]
|
||||
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
||||
character-set-server=utf8
|
||||
Generated
-23848
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user