forked from leftypol/leftypol
docker: make the compose local instance folder file parametrizable
This commit is contained in:
parent
fd04d92c48
commit
cd32d04c93
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ services:
|
|||
depends_on:
|
||||
- leftypol-db
|
||||
volumes:
|
||||
- ./local-instances/1/www:/var/www/html
|
||||
- ./local-instances/${LOCAL_INSTANCE_NAME:-0}/www:/var/www/html
|
||||
- ./docker/nginx/leftypol.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./docker/nginx/proxy.conf:/etc/nginx/conf.d/proxy.conf
|
||||
|
@ -21,7 +21,7 @@ services:
|
|||
context: .
|
||||
dockerfile: ./docker/php/Dockerfile
|
||||
volumes:
|
||||
- ./local-instances/1/www:/var/www
|
||||
- ./local-instances/${LOCAL_INSTANCE_NAME:-0}/www:/var/www
|
||||
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
||||
|
||||
#MySQL Service
|
||||
|
@ -37,4 +37,4 @@ services:
|
|||
MYSQL_ROOT_PASSWORD: password
|
||||
command: "--default-authentication-plugin=mysql_native_password"
|
||||
volumes:
|
||||
- ./local-instances/1/mysql:/var/lib/mysql
|
||||
- ./local-instances/${LOCAL_INSTANCE_NAME:-0}/mysql:/var/lib/mysql
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue