mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:01:05 +03:30
add docker file
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
.git
|
||||
.gitignore
|
||||
.idea
|
||||
.env
|
||||
node_modules
|
||||
vendor
|
||||
storage/framework/cache/**
|
||||
storage/framework/sessions/**
|
||||
storage/framework/views/**
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root" && exit 0;
|
||||
fi
|
||||
|
||||
|
||||
git pull origin master
|
||||
|
||||
npm install
|
||||
|
||||
npm run prod
|
||||
|
||||
cp -r /home/administrator/apps/cssd/public/js/vue /home/administrator/apps/nginx/www/cssd/public/js/
|
||||
|
||||
|
||||
cp /home/administrator/apps/cssd/public/mix-manifest.json /home/administrator/apps/nginx/www/cssd/public/
|
||||
|
||||
|
||||
chown -R www-data:www-data /home/administrator/apps/nginx/www/cssd/public
|
||||
|
||||
|
||||
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
docker-compose up -d --build app
|
||||
fi
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
FROM dfs1368/laravel-php-fpm:1.0.0
|
||||
|
||||
WORKDIR /var/www
|
||||
|
||||
RUN echo 'memory_limit = -1' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
|
||||
|
||||
COPY database /var/www/database
|
||||
COPY composer.lock /var/www/
|
||||
COPY composer.json /var/www/
|
||||
RUN composer install --no-scripts
|
||||
|
||||
COPY . /var/www
|
||||
|
||||
RUN chown -R www-data:www-data \
|
||||
/var/www/public \
|
||||
/var/www/storage \
|
||||
/var/www/bootstrap/cache
|
||||
@@ -0,0 +1,21 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
|
||||
app:
|
||||
container_name: cssd
|
||||
image: registry.willaspace.com/willaspace/cssd
|
||||
#build:
|
||||
# context: ./
|
||||
volumes:
|
||||
- ~/apps/nginx/www/cssd/storage:/var/www/storage
|
||||
- ~/apps/nginx/www/cssd/public:/var/www/public
|
||||
env_file: '.env'
|
||||
environment:
|
||||
- "DB_HOST=mysql_database"
|
||||
- "REDIS_HOST=cache"
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: willaengine_default
|
||||
Reference in New Issue
Block a user