Skip to content

Commit

Permalink
phpfpm
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Nov 11, 2024
1 parent 72b4e9a commit 4159447
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/phpfpm/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ W9_DIST=community
W9_VERSION=8.2-fpm

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=php
W9_ID=phpfpm
W9_HTTP_PORT_SET=9001
W9_HTTP_PORT=9000
W9_HTTP_PORT=80
W9_URL=sample.domain.com
W9_URL_REPLACE=true
W9_NETWORK=websoft9
Expand Down
1 change: 1 addition & 0 deletions apps/phpfpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN sed -i 's|deb http://deb.debian.org/debian stretch|deb http://archive.debia
sed -i 's|deb http://security.debian.org/debian-security stretch/updates|deb http://archive.debian.org/debian-security stretch/updates|g' /etc/apt/sources.list || true

RUN apt update && apt install -y crudini nginx
RUN rm -f /var/www/html/index.nginx-debian.html

COPY src/extensions.ini /usr/local/bin/config.ini
COPY src/apt_install.sh /usr/local/bin/apt_install.sh
Expand Down
2 changes: 1 addition & 1 deletion apps/phpfpm/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
command: ["sh", "-c", "chmod +x /usr/local/bin/cmd.sh && /usr/local/bin/cmd.sh && service nginx start && php-fpm"]
env_file: .env
ports:
- $W9_HTTP_PORT_SET:9000
- $W9_HTTP_PORT_SET:80
volumes:
- source:/var/www/html
- ./src/cmd.sh:/usr/local/bin/cmd.sh #for CI
Expand Down

0 comments on commit 4159447

Please sign in to comment.