Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 88d0c83

Browse files
Start Working on docker integration
1 parent 5bd7e5d commit 88d0c83

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

‎docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: "3.7"
2+
3+
services:
4+
app:
5+
build: docker
6+
ports:
7+
- "80:80"
8+
volumes:
9+
# Mount source-code for development
10+
- ./:/var/www

‎docker/000-default.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<VirtualHost *:80>
2+
ServerAdmin webmaster@localhost
3+
DocumentRoot /var/www/public
4+
5+
<Directory /var/www>
6+
Options Indexes FollowSymLinks
7+
AllowOverride All
8+
Require all granted
9+
</Directory>
10+
</VirtualHost>

‎docker/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM php:8.1-apache
2+
3+
# Copy virtual host into container
4+
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
5+
6+
# Enable rewrite mode
7+
RUN a2enmod rewrite
8+
9+
WORKDIR /var/www
10+
11+
# Change the owner of the container document root
12+
RUN chown -R www-data:www-data /var/www
13+
14+
CMD ["apache2-foreground"]
15+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /