Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
saifsas committed Apr 2, 2020
0 parents commit d8f018d
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "www"]
path = www
url = https://github.com/v2board/v2board.git
8 changes: 8 additions & 0 deletions caddy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
http://localhost {
root /www/public
log /wwwlogs/caddy.log
fastcgi / /tmp/php-cgi.sock php
rewrite {
to {path} {path}/ /index.php?{query}
}
}
1 change: 1 addition & 0 deletions crontabs.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* * * * * php /www/artisan schedule:run >> /dev/null 2>&1
14 changes: 14 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'
services:
www:
image: tokumeikoi/lcrp
volumes:
- './www:/www'
- './wwwlogs:/wwwlogs'
- './caddy.conf:/run/caddy/caddy.conf'
- './supervisord.conf:/run/supervisor/supervisord.conf'
- './crontabs.conf:/etc/crontabs/root'
ports:
- '80:80'
- '443:443'
restart: always
13 changes: 13 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
;supervisor config

[program:v2board]
process_name=%(program_name)s_%(process_num)02d
command=php /www/artisan queue:work --queue=send_email
stdout_logfile=/wwwlogs/queue.log
stdout_logfile_maxbytes=0
stderr_logfile=/wwwlogs/queue_error.log
stderr_logfile_maxbytes=0
autostart=true
autorestart=true
startretries=0
numprocs=4
1 change: 1 addition & 0 deletions www
Submodule www added at 68f7cd
1 change: 1 addition & 0 deletions wwwlogs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.log

0 comments on commit d8f018d

Please sign in to comment.