PHP&docker PART1 - RUN php application with DOCKER and docker compose
HTML-код
- Опубликовано: 10 ноя 2024
- #php #docker #dockercompose
Running simple php application with docker compose.
Timecodes:
00:01:45 - write Dockerfile
00:02:40 - write docker-compose.yml
00:05:10 - build and up the application
00:08:00 - fixing Dockerfile
00:11:11 - see the result on localhost:8000
Dockerfile:
FROM php:8.2-apache
COPY ./app /var/www/html
EXPOSE 80
docker-compose.yml:
version: '3'
services:
app:
build: .
volumes:
./app:/var/www/html
ports:
"8000:80"