Moved to caddy and docker for local dev

This commit is contained in:
Michel 2024-10-30 19:39:55 +01:00
parent c3e81ce6ea
commit af6b2b752e
5 changed files with 36 additions and 50 deletions

View file

@ -0,0 +1,6 @@
:80 {
root * /app/public
encode gzip
php_fastcgi php-fpm:9000
file_server
}

View file

@ -0,0 +1,8 @@
FROM php:8.3-fpm
RUN apt-get update && \
apt-get install -y \
libzip-dev libpng-dev
RUN docker-php-ext-install zip
RUN docker-php-ext-install gd

View file

@ -0,0 +1,22 @@
services:
caddy:
container_name: gamesshop_caddy
image: caddy
ports:
- 8080:80
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./../..:/app
- caddy_config:/config
- caddy_data:/data
depends_on:
- php-fpm
php-fpm:
container_name: gamesshop_php
build: .
volumes:
- ./../..:/app
volumes:
caddy_data:
caddy_config: