bunkerweb/examples/autoconf-php/autoconf.yml

59 lines
2.3 KiB
YAML
Raw Normal View History

version: "3"
services:
myapp1:
image: php:fpm
networks:
2022-06-03 15:24:14 +00:00
bw-services:
aliases:
- myapp1
2022-06-03 15:24:14 +00:00
# ⚠️ UID and GID of mywww (101:101) and php:fpm (33:33) are not the same ⚠️
# but both needs access to the files and folders of web-files
# don't forget to edit the permissions of the files and folders accordingly
# example : chown -R 33:101 ./bw-data/www && find ./bw-data/www -type f -exec chmod 0640 {} \; && find ./bw-data/www -type d -exec chmod 0750 {} \;
volumes:
2023-03-08 16:01:55 +00:00
- ./www/app1.example.com:/app # folder containing PHP app1 (don't forget to rename it)
labels:
2022-06-03 15:24:14 +00:00
- "bunkerweb.SERVER_NAME=app1.example.com" # replace with your domain
- "bunkerweb.REMOTE_PHP=myapp1"
- "bunkerweb.REMOTE_PHP_PATH=/app"
myapp2:
image: php:fpm
networks:
2022-06-03 15:24:14 +00:00
bw-services:
aliases:
- myapp2
2023-03-08 16:01:55 +00:00
# ⚠️ UID and GID of BunkerWeb (101:101) and php:fpm (33:33) are not the same ⚠️
2022-06-03 15:24:14 +00:00
# but both needs access to the files and folders of web-files
# don't forget to edit the permissions of the files and folders accordingly
2023-03-08 16:01:55 +00:00
# example : chown -R 33:101 ./www && find ./www -type f -exec chmod 0640 {} \; && find ./www -type d -exec chmod 0750 {} \;
volumes:
2023-03-08 16:01:55 +00:00
- ./www/app2.example.com:/app # folder containing PHP app2 (don't forget to rename it)
labels:
2022-06-03 15:24:14 +00:00
- "bunkerweb.SERVER_NAME=app2.example.com" # replace with your domain
- "bunkerweb.REMOTE_PHP=myapp2"
- "bunkerweb.REMOTE_PHP_PATH=/app"
myapp3:
image: php:fpm
networks:
2022-06-03 15:24:14 +00:00
bw-services:
aliases:
- myapp3
2023-03-08 16:01:55 +00:00
# ⚠️ UID and GID of BunkerWeb (101:101) and php:fpm (33:33) are not the same ⚠️
2022-06-03 15:24:14 +00:00
# but both needs access to the files and folders of web-files
# don't forget to edit the permissions of the files and folders accordingly
2023-03-08 16:01:55 +00:00
# example : chown -R 33:101 ./www && find ./www -type f -exec chmod 0640 {} \; && find ./www -type d -exec chmod 0750 {} \;
volumes:
2023-03-08 16:01:55 +00:00
- ./www/app3.example.com:/app # folder containing PHP app3 (don't forget to rename it)
labels:
2022-06-03 15:24:14 +00:00
- "bunkerweb.SERVER_NAME=app3.example.com" # replace with your domain
- "bunkerweb.REMOTE_PHP=myapp3"
- "bunkerweb.REMOTE_PHP_PATH=/app"
networks:
2022-06-03 15:24:14 +00:00
bw-services:
external:
2022-06-03 15:24:14 +00:00
name: bw-services