- create network
docker network create qiita
- build
docker-compose up -d
- After build. Checking the running container
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
698c65c311fc qiita_qiita_nginx "/usr/sbin/nginx -g …" 18 hours ago Up 18 hours 80/tcp, 0.0.0.0:9000->90/tcp qiita_nginx
d74014ba024f qiita_qiita_php "docker-php-entrypoi…" 18 hours ago Up 18 hours 9000/tcp qiita_php
ff200aa14178 d6c4677d678a "python3" 18 hours ago Up 18 hours python_batch
2c63d1243a70 mysql:5.7 "docker-entrypoint.s…" 18 hours ago Up 18 hours 3306/tcp, 33060/tcp, 0.0.0.0:4306->4306/tcp qiita_db
cron setting in batch_container batch container creates json (tags, list, author...) at 10am every day
json path: /mnt/json/*
mnt dir is shared with php container
If the following files are not created
- /config/debugbar.php
- /vendor/barryvdh/laravel-debugbar/config/debugbar.php
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
add text line in config/app.php
'providers' => [
+ Barryvdh\Debugbar\ServiceProvider::class,
],
'aliases' => [
+ 'Debugbar' => Barryvdh\Debugbar\Facade::class,
],
add true/false in .env of laravel project
# for dev
DEBUGBAR_ENABLED=true
# for prd
DEBUGBAR_ENABLED=false