Skip to content

Commit

Permalink
Add container files
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed May 13, 2024
1 parent 13e4c84 commit 01e6d32
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions container/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM php:7.4-apache

RUN apt update && apt install -y git zip \
&& docker-php-ext-install mysqli pdo pdo_mysql
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer


COPY . /var/www/html/asset-library

WORKDIR /var/www/html/asset-library
RUN composer install
RUN a2enmod rewrite
RUN chown -R www-data:www-data .
USER www-data
20 changes: 20 additions & 0 deletions container/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
services:
gd-asset-library:
build:
context: ../
dockerfile: ./container/Dockerfile
depends_on:
- database
ports:
- 8080:80
database:
image: mariadb:11.3.2
volumes:
- ../data:/docker-entrypoint-initdb.d:ro
expose:
- 3306
environment:
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: asset-library
MARIADB_ROOT_PASSWORD: password

0 comments on commit 01e6d32

Please sign in to comment.