docker permission fix
This commit is contained in:
parent
4d0ebc58be
commit
1737a2f592
@ -2,12 +2,13 @@ version: "3.9"
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
container_name: web
|
container_name: web
|
||||||
image: nginx:latest
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/application:rw
|
- .:/application:rw
|
||||||
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
build:
|
||||||
|
context: './docker/nginx/'
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
- php
|
- php
|
||||||
@ -29,3 +30,4 @@ services:
|
|||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|
||||||
|
4
docker/nginx/Dockerfile
Normal file
4
docker/nginx/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM nginx:latest
|
||||||
|
WORKDIR "/application"
|
||||||
|
RUN mkdir -p /application/core/Configuration
|
||||||
|
RUN chown -R www-data:www-data /application
|
@ -1,4 +1,6 @@
|
|||||||
FROM php:7-fpm
|
FROM php:7-fpm
|
||||||
WORKDIR "/application"
|
WORKDIR "/application"
|
||||||
|
RUN mkdir -p /application/core/Configuration
|
||||||
|
RUN chown -R www-data:www-data /application
|
||||||
RUN docker-php-ext-install mysqli
|
RUN docker-php-ext-install mysqli
|
||||||
|
USER www-data
|
Loading…
Reference in New Issue
Block a user