DONE: remove nginx for local docker compose
This commit is contained in:
+3
-10
@@ -5,6 +5,8 @@ services:
|
|||||||
dockerfile: docker/php/Dockerfile
|
dockerfile: docker/php/Dockerfile
|
||||||
target: development
|
target: development
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
|
ports:
|
||||||
|
- "8081:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/var/www/html:cached
|
- ./:/var/www/html:cached
|
||||||
environment:
|
environment:
|
||||||
@@ -15,16 +17,7 @@ services:
|
|||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
- mysql
|
||||||
|
command: ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8000"]
|
||||||
web:
|
|
||||||
image: nginx:1.25-alpine
|
|
||||||
ports:
|
|
||||||
- "8081:80"
|
|
||||||
volumes:
|
|
||||||
- ./:/var/www/html:cached
|
|
||||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
depends_on:
|
|
||||||
- app
|
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
|
|||||||
Reference in New Issue
Block a user