Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 09b874d

Browse files
authored
Nginx and Php-fpm with Laravel on Docker
How to run multiple services in one docker container. Running nginx and php-fpm processes in the same Debian container with Laravel (mysql, mariadb, sqlite). How to run multiple services in one docker container.
1 parent f533eca commit 09b874d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎README.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nginx and Php-fpm with Laravel on Docker
22

3-
Running nginx and php-fpm processes in the same Debian container with Laravel (mysql, mariadb, sqlite). How to run multiple services in one docker container.
3+
How to run multiple services in one docker container. Running nginx and php-fpm processes in the same Debian container with Laravel (mysql, mariadb, sqlite). How to run multiple services in one docker container.
44

55
## Laravel project directory
66

@@ -32,6 +32,10 @@ docker compose ps
3232
# Interactive container terminal
3333
docker exec -it app_host bash
3434
docker exec -it mysql_host bash
35+
36+
# Services in container
37+
service --status-all
38+
ps -aux
3539
```
3640

3741
## Run Php-fpm and nginx in same docker container
@@ -40,8 +44,8 @@ How to run multiple services in one docker container.
4044

4145
```sh
4246
# Allow services autostart
43-
RUN echo "exit 0" > /usr/sbin/policy-rc.d
47+
#RUN echo "exit 0" > /usr/sbin/policy-rc.d
4448

45-
# Run php-fpm (required don't remove)
49+
# Run php-fpm and nginx services (required don't remove)
4650
CMD /etc/init.d/php8.2-fpm start && nginx -g "daemon off;"
4751
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /