bunkerweb/examples/php-multisite/autoconf.yml

40 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2022-07-23 20:38:49 +00:00
services:
myapp1:
image: php:fpm
2023-03-16 16:43:47 +00:00
# ⚠️ UID and GID of BunkerWeb (101:101) and php:fpm (33:33) are not the same ⚠️
2022-07-23 20:38:49 +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-16 16:43:47 +00:00
# example : chown -R 33:101 ./www && find ./www -type f -exec chmod 0640 {} \; && find ./www -type d -exec chmod 0750 {} \;
2022-07-23 20:38:49 +00:00
volumes:
2023-03-16 16:43:47 +00:00
- ./www/app1.example.com:/app # folder containing PHP app1 (don't forget to rename it)
2022-07-23 20:38:49 +00:00
networks:
bw-services:
aliases:
- myapp1
labels:
- bunkerweb.SERVER_NAME=app1.example.com
- bunkerweb.REMOTE_PHP=myapp1
- bunkerweb.REMOTE_PHP_PATH=/app
myapp2:
image: php:fpm
2023-03-16 16:43:47 +00:00
# ⚠️ UID and GID of BunkerWeb (101:101) and php:fpm (33:33) are not the same ⚠️
2022-07-23 20:38:49 +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-16 16:43:47 +00:00
# example : chown -R 33:101 ./www && find ./www -type f -exec chmod 0640 {} \; && find ./www -type d -exec chmod 0750 {} \;
2022-07-23 20:38:49 +00:00
volumes:
2023-03-16 16:43:47 +00:00
- ./www/app2.example.com:/app # folder containing PHP app2 (don't forget to rename it)
2022-07-23 20:38:49 +00:00
networks:
bw-services:
aliases:
- myapp2
labels:
- bunkerweb.SERVER_NAME=app2.example.com
- bunkerweb.REMOTE_PHP=myapp2
- bunkerweb.REMOTE_PHP_PATH=/app
networks:
bw-services:
external:
name: bw-services