-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (29 loc) · 1022 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: "3.8"
services:
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
container_name: app_${APP_NAME}
command: >
sh -c
'mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache storage/logs bootstrap/cache \
&& chmod -R 777 storage bootstrap/cache storage \
&& composer update -o --no-interaction \
&& composer dump-autoload -o \
&& php artisan optimize \
&& php artisan event:cache \
&& php artisan config:cache \
&& php artisan route:cache \
&& php artisan view:cache \
&& vendor/bin/pint \
&& npm update \
&& rm -rf public/build \
&& rm -rf public/hot \
&& npm run build \
&& php artisan octane:start --server=swoole --host=0.0.0.0 --port=9000 --watch'
ports:
- "${APP_PORT}:9000"
volumes:
- ./app/:/var/www/html/
- ./docker/app/php.ini:/usr/local/etc/php/conf.d/php.ini