mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3658be4a44 | ||
|
|
7c206dd392 | ||
|
|
18193f00d7 | ||
|
|
bac028312a | ||
|
|
050bca13e5 |
46
.env-sail
46
.env-sail
@ -1,23 +1,23 @@
|
||||
APP_NAME=oc
|
||||
APP_ENV=production
|
||||
INSTALLED="false"
|
||||
APP_URL_TYPE="HTTP_X_FORWARDED_HOST"
|
||||
APP_KEY=DYKEBxfEHK1PP4mUbP3gWPtsPZgXh0qX
|
||||
APP_DEBUG=true
|
||||
DEBUG_BAR=true
|
||||
DB_CONNECTION=mysql
|
||||
#DB_HOST=mysql
|
||||
DB_HOST=host.docker.internal
|
||||
DB_DATABASE=oc
|
||||
DB_USERNAME=oc
|
||||
DB_PASSWORD=oc
|
||||
APPLICATION_NAME=Default
|
||||
APPLICATION_REFERENCE=default
|
||||
ADMIN_USERNAME=admin
|
||||
ADMIN_EMAIL=admin@example.com
|
||||
ADMIN_PASSWORD=admin
|
||||
APP_LOCALE=en
|
||||
APP_TIMEZONE=UTC
|
||||
REDIS_CLIENT=phpredis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
APP_NAME=oc
|
||||
APP_ENV=production
|
||||
INSTALLED="false"
|
||||
APP_URL_TYPE="HTTP_X_FORWARDED_HOST"
|
||||
APP_KEY=DYKEBxfEHK1PP4mUbP3gWPtsPZgXh0qX
|
||||
APP_DEBUG=true
|
||||
DEBUG_BAR=true
|
||||
DB_CONNECTION=mysql
|
||||
#DB_HOST=mysql
|
||||
DB_HOST=host.docker.internal
|
||||
DB_DATABASE=oc
|
||||
DB_USERNAME=oc
|
||||
DB_PASSWORD=oc
|
||||
APPLICATION_NAME=Default
|
||||
APPLICATION_REFERENCE=default
|
||||
ADMIN_USERNAME=admin
|
||||
ADMIN_EMAIL=admin@example.com
|
||||
ADMIN_PASSWORD=admin
|
||||
APP_LOCALE=en
|
||||
APP_TIMEZONE=UTC
|
||||
REDIS_CLIENT=phpredis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
|
||||
@ -12,9 +12,8 @@
|
||||
</a>
|
||||
<a href="https://packagist.org/packages/openclassify/openclassify" target="_blank"><img class="badge" src="http://poser.pugx.org/openclassify/openclassify/downloads"></a>
|
||||
<a href="https://packagist.org/packages/openclassify/openclassify" target="_blank"><img class="badge" src="http://poser.pugx.org/openclassify/openclassify/license"></a>
|
||||
<a href="https://scrutinizer-ci.com/g/openclassify/openclassify/?branch=master" rel="nofollow"><img src="https://camo.githubusercontent.com/b1809c56d5b15765dabaf72c173e7f9aba9e7b721ccb0036e9db5da62869e6b1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f70656e636c6173736966792f6f70656e636c6173736966792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572" alt="Scrutinizer Code Quality" data-canonical-src="https://scrutinizer-ci.com/g/openclassify/openclassify/badges/quality-score.png?b=master" style="max-width: 100%;"></a>
|
||||
<a href="https://scrutinizer-ci.com/g/openclassify/openclassify/build-status/master" rel="nofollow"><img src="https://camo.githubusercontent.com/07509845a0eab157141235a794cd09967425222639d63d640d689763250f0da3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f70656e636c6173736966792f6f70656e636c6173736966792f6261646765732f6275696c642e706e673f623d6d6173746572" alt="Build Status" data-canonical-src="https://scrutinizer-ci.com/g/openclassify/openclassify/badges/build.png?b=master" style="max-width: 100%;"></a>
|
||||
<a href="https://scrutinizer-ci.com/code-intelligence" rel="nofollow"><img src="https://camo.githubusercontent.com/9fcde20119b3a44e430ad50f1bb3c2db3db753df9c3b2ade5cd14217a0a971ab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f70656e636c6173736966792f6f70656e636c6173736966792f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572" alt="Code Intelligence Status" data-canonical-src="https://scrutinizer-ci.com/g/openclassify/openclassify/badges/code-intelligence.svg?b=master" style="max-width: 100%;"></a>
|
||||
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
@ -1,87 +1,88 @@
|
||||
volumes:
|
||||
db-store:
|
||||
psysh-store:
|
||||
|
||||
configs:
|
||||
db-config:
|
||||
file: ./docker/mysql/my.cnf
|
||||
|
||||
services:
|
||||
php:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/php/Dockerfile
|
||||
target: ${APP_BUILD_TARGET:-development}
|
||||
container_name: oc_php
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./
|
||||
target: /workspace
|
||||
- type: volume
|
||||
source: psysh-store
|
||||
target: /root/.config/psysh
|
||||
volume:
|
||||
nocopy: true
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
nginx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/nginx/Dockerfile
|
||||
container_name: ${APP_NAME}_nginx
|
||||
ports:
|
||||
- target: 80
|
||||
published: ${WEB_PUBLISHED_PORT:-80}
|
||||
protocol: tcp
|
||||
mode: host
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./
|
||||
target: /workspace
|
||||
depends_on:
|
||||
- php
|
||||
- database
|
||||
|
||||
database:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/mysql/Dockerfile
|
||||
command: --max_allowed_packet=32505856 # Set max_allowed_packet to 256M (or any other value)
|
||||
ports:
|
||||
- target: 3306
|
||||
published: ${DB_PUBLISHED_PORT:-3306}
|
||||
protocol: tcp
|
||||
mode: host
|
||||
configs:
|
||||
- source: db-config
|
||||
target: /etc/my.cnf
|
||||
volumes:
|
||||
- type: volume
|
||||
source: db-store
|
||||
target: /var/lib/mysql
|
||||
volume:
|
||||
nocopy: true
|
||||
environment:
|
||||
- MYSQL_DATABASE=${DB_DATABASE:-laravel}
|
||||
- MYSQL_USER=${DB_USERNAME:-phper}
|
||||
- MYSQL_PASSWORD=${DB_PASSWORD:-secret}
|
||||
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD:-secret}
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin:latest
|
||||
ports:
|
||||
- "8081:80"
|
||||
depends_on:
|
||||
- database
|
||||
environment:
|
||||
PMA_USER: oc
|
||||
PMA_PASSWORD: oc
|
||||
PMA_HOSTS: database,localhost
|
||||
volumes:
|
||||
db-store:
|
||||
psysh-store:
|
||||
|
||||
configs:
|
||||
db-config:
|
||||
file: ./docker/mysql/my.cnf
|
||||
|
||||
services:
|
||||
php:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/php/Dockerfile
|
||||
target: ${APP_BUILD_TARGET:-development}
|
||||
container_name: oc_php
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./
|
||||
target: /workspace
|
||||
- type: volume
|
||||
source: psysh-store
|
||||
target: /root/.config/psysh
|
||||
volume:
|
||||
nocopy: true
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
nginx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/nginx/Dockerfile
|
||||
container_name: ${APP_NAME}_nginx
|
||||
ports:
|
||||
- target: 80
|
||||
published: ${WEB_PUBLISHED_PORT:-80}
|
||||
protocol: tcp
|
||||
mode: host
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./
|
||||
target: /workspace
|
||||
depends_on:
|
||||
- php
|
||||
- database
|
||||
|
||||
database:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/mysql/Dockerfile
|
||||
command: --max_allowed_packet=32505856 # Set max_allowed_packet to 256M (or any other value)
|
||||
ports:
|
||||
- target: 3306
|
||||
published: ${DB_PUBLISHED_PORT:-3306}
|
||||
protocol: tcp
|
||||
mode: host
|
||||
configs:
|
||||
- source: db-config
|
||||
target: /etc/my.cnf
|
||||
volumes:
|
||||
- type: volume
|
||||
source: db-store
|
||||
target: /var/lib/mysql
|
||||
volume:
|
||||
nocopy: true
|
||||
environment:
|
||||
- MYSQL_DATABASE=${DB_DATABASE:-laravel}
|
||||
- MYSQL_USER=${DB_USERNAME:-phper}
|
||||
- MYSQL_PASSWORD=${DB_PASSWORD:-secret}
|
||||
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD:-secret}
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin:latest
|
||||
ports:
|
||||
- "8081:80"
|
||||
depends_on:
|
||||
- database
|
||||
environment:
|
||||
PMA_USER: oc
|
||||
PMA_PASSWORD: oc
|
||||
PMA_HOSTS: database,localhost
|
||||
UPLOAD_LIMIT: 10G
|
||||
@ -1,15 +0,0 @@
|
||||
const mix = require('laravel-mix');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mix Asset Management
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Mix provides a clean, fluent API for defining some Webpack build steps
|
||||
| for your Laravel applications. By default, we are compiling the CSS
|
||||
| file for the application as well as bundling up all the JS files.
|
||||
|
|
||||
*/
|
||||
|
||||
mix.js('resources/assets/js/app.js', 'public/js')
|
||||
.vue().version();
|
||||
Loading…
Reference in New Issue
Block a user