From 48aaaaf9bb2ec66c08f32a430295d29451a6bb2b Mon Sep 17 00:00:00 2001 From: Draconis Date: Fri, 20 Dec 2024 22:46:09 +0100 Subject: [PATCH] new start for docker --- .DS_Store | Bin 6148 -> 6148 bytes src/.htaccess => .htaccess | 0 Dockerfile | 21 ------------------ src/background-min.jpg => background-min.jpg | Bin src/background.jpg => background.jpg | Bin docker-compose.yml | 19 ---------------- docker/nginx.conf | 22 ------------------- src/index.html => index.html | 0 src/playlist_gen.php => playlist_gen.php | 0 src/xspf_playlist.php => xspf_playlist.php | 0 10 files changed, 62 deletions(-) rename src/.htaccess => .htaccess (100%) delete mode 100644 Dockerfile rename src/background-min.jpg => background-min.jpg (100%) rename src/background.jpg => background.jpg (100%) delete mode 100644 docker-compose.yml delete mode 100644 docker/nginx.conf rename src/index.html => index.html (100%) rename src/playlist_gen.php => playlist_gen.php (100%) rename src/xspf_playlist.php => xspf_playlist.php (100%) diff --git a/.DS_Store b/.DS_Store index 6522628a3bd00d4d7f472a43bcb7b0441d237013..4d2bf23f9667c6243574d1e53978d7d33b13cfef 100644 GIT binary patch delta 86 zcmZoMXfc=|#>CJzu~2NHo}wrt0|NsP3otPFGPpA6G2}9&c;-wjRNt)5{D5V10rMQD l&Fmcf96$}56Pdp=Pv#fVB)qu~2NHo}wrV0|Nsi1A_nqLlHxp?PX45>iz zB8GfqS)e#jIa4~2*82|zKo*+Xr1IhdkV!!C9Z3Z_nZ+dr2G;i=7gSqCvcn{QR6G7(1~(DJ(O!JYGP=IX|x?F*7f<2&^MBB^9V9COk7Q zCBNJ$zceqU7_2!MBEiAQ!5J?gQC)3hW}u^BVNt82P;F>nY^bAPW@%Pi%gG_CtZy9@ zpPiGNm)`|;HUlHj`(VHer6H6w14B2Eg%Sc~!9{sF`FZIZJ07!aX6NAN0EXkngWs7a a^NZ+;fV6>(YJkvSQ#Xf*Y+#<)zybiam|u?o diff --git a/src/.htaccess b/.htaccess similarity index 100% rename from src/.htaccess rename to .htaccess diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 9502c33..0000000 --- a/Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -# Utiliser une image de base officielle de PHP avec FPM (FastCGI Process Manager) -FROM php:8.1-fpm - -# Installer les dépendances nécessaires pour PHP -RUN apt-get update && apt-get install -y \ - libfreetype6-dev \ - libjpeg62-turbo-dev \ - libpng-dev \ - libzip-dev \ - && docker-php-ext-configure gd --with-freetype --with-jpeg \ - && docker-php-ext-install -j$(nproc) gd \ - && docker-php-ext-install zip - -# Copier le code source de l'application PHP dans le conteneur -COPY ./src /var/www/html - -# Définir le répertoire de travail -WORKDIR /var/www/html - -# Exposer le port 9000 pour PHP-FPM -EXPOSE 9000 diff --git a/src/background-min.jpg b/background-min.jpg similarity index 100% rename from src/background-min.jpg rename to background-min.jpg diff --git a/src/background.jpg b/background.jpg similarity index 100% rename from src/background.jpg rename to background.jpg diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index addbd6b..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,19 +0,0 @@ -services: - php: - build: - context: . - dockerfile: /docker/Dockerfile - volumes: - - .:/var/www/html - expose: - - "9000" - - nginx: - image: nginx:alpine - volumes: - - .:/var/www/html - - ./nginx.conf:/etc/nginx/conf.d/default.conf - ports: - - "80:80" - depends_on: - - php diff --git a/docker/nginx.conf b/docker/nginx.conf deleted file mode 100644 index 1c48768..0000000 --- a/docker/nginx.conf +++ /dev/null @@ -1,22 +0,0 @@ -server { - listen 80; - server_name localhost; - - root /var/www/html; - index index.php index.html; - - location / { - try_files $uri $uri/ =404; - } - - location ~ \.php$ { - include fastcgi_params; - fastcgi_pass php:9000; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - } - - location ~ /\.ht { - deny all; - } -} diff --git a/src/index.html b/index.html similarity index 100% rename from src/index.html rename to index.html diff --git a/src/playlist_gen.php b/playlist_gen.php similarity index 100% rename from src/playlist_gen.php rename to playlist_gen.php diff --git a/src/xspf_playlist.php b/xspf_playlist.php similarity index 100% rename from src/xspf_playlist.php rename to xspf_playlist.php