chore: ajouter Dockerfile, docker-compose et .dockerignore
This commit is contained in:
1 parent
ea460db104
commit
8f1576aa6c
3 files changed
+35
No files matched your search
@@ -0,0 +1,7 @@
|
||||
.git
|
||||
*.sqlite
|
||||
*.sqlite-journal
|
||||
data.json
|
||||
.DS_Store
|
||||
.idea/
|
||||
.vscode/
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
FROM php:8.4-apache
|
||||
|
||||
RUN a2enmod rewrite
|
||||
|
||||
RUN printf '<VirtualHost *:80>\n\
|
||||
DocumentRoot /var/www/html/public\n\
|
||||
<Directory /var/www/html/public>\n\
|
||||
AllowOverride All\n\
|
||||
Require all granted\n\
|
||||
</Directory>\n\
|
||||
</VirtualHost>\n' > /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
WORKDIR /var/www/html
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p database && chown -R www-data:www-data /var/www/html
|
||||
|
||||
EXPOSE 80
|
||||
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:80"
|
||||
volumes:
|
||||
- db-data:/var/www/html/database
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
Reference in new issue
Block a user