Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wp_shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zsw
wp_shop
Commits
0bf9ce14
Commit
0bf9ce14
authored
Apr 01, 2025
by
ccw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c
parent
16565ec1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
10-general.conf
dockerservice/10-general.conf
+1
-0
Dockerfile
dockerservice/Dockerfile
+23
-0
docker-compose.yml
dockerservice/docker-compose.yml
+39
-0
socket.io.nginx.conf
dockerservice/socket.io.nginx.conf
+5
-0
No files found.
dockerservice/10-general.conf
0 → 100755
View file @
0bf9ce14
client_max_body_size
100
m
;
dockerservice/Dockerfile
0 → 100755
View file @
0bf9ce14
FROM
webdevops/php-nginx:7.2
ENV
COMPOSER_ALLOW_SUPERUSER=1
#ADD wkhtmltox_0.12.5-1.stretch_amd64.deb /tmp/
RUN
sed
-i
's/deb.debian.org/mirrors.aliyun.com/g'
/etc/apt/sources.list
\
&&
sed
-i
's/security.debian.org/mirrors.aliyun.com/g'
/etc/apt/sources.list
\
#&& sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/buster.list
\
#&& sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/buster.list
\
&&
apt-get update
\
&&
cd
/tmp
\
&&
composer config
-g
repo.packagist composer https://mirrors.aliyun.com/composer/
\
&&
docker-service-enable ssh
\
&&
echo
'root:123456'
| chpasswd
\
&&
pecl
install
-D
'enable-openssl="yes"'
http://pecl.php.net/get/swoole-4.4.17.tgz
\
&&
echo
"[swoole]"
>>
/opt/docker/etc/php/php.ini
\
&&
echo
"extension=swoole.so"
>>
/opt/docker/etc/php/php.ini
\
&&
docker-run-bootstrap
\
&&
docker-image-cleanup
ENV
WEB_DOCUMENT_ROOT=project
WORKDIR
$WEB_DOCUMENT_ROOT
dockerservice/docker-compose.yml
0 → 100644
View file @
0bf9ce14
version
:
'
3'
services
:
wpshop
:
image
:
webdevops/php-nginx:7.4
container_name
:
wpshop
restart
:
always
expose
:
-
"
80"
-
"
9875"
ports
:
-
"
9875:9875"
environment
:
-
YII_ENV=test
-
YII_DEBUG=1
-
VIRTUAL_HOST=www.teesvile.com
-
WEB_DOCUMENT_ROOT=/project/
-
LETSENCRYPT_HOST=www.teesvile.com
-
php.post_max_size=100M
-
php.upload_max_filesize=100M
-
php.max_input_time=6000
-
php.memory_limit=128M
-
php.max_execution_time=6000
-
php.set_time_limit=600
#- php.session.save_handler=redis
#- php.session.save_path=tcp://redis:6379
#- php.session.gc_maxlifetime=864000
volumes
:
-
/data:/data
-
../:/project
-
/var/spool/cron/crontabs:/var/spool/cron/crontabs
-
./socket.io.nginx.conf:/opt/docker/etc/nginx/vhost.common.d/10-location-root.conf
-
./10-general.conf:/opt/docker/etc/nginx/vhost.common.d/10-general.conf
-
/etc/localtime:/etc/localtime
network_mode
:
docker_network
networks
:
default
:
external
:
name
:
docker_network
dockerservice/socket.io.nginx.conf
0 → 100755
View file @
0bf9ce14
absolute_redirect
off
;
location
/ {
try_files
$
uri
$
uri
/ /
index
.
php
?$
args
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment