This commit is contained in:
tiennm99 committed 2023-12-23 08:15:16 +07:00
1 parent 3426cf1da6
commit c5567c623e
5 files changed
+69 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
.env
+22
View File
@@ -0,0 +1,22 @@
# Dockerfile
FROM php:8.0-apache
RUN apt-get update && apt-get install -y \
libzip-dev \
libpng-dev \
libonig-dev \
curl \
unzip \
# cron \
&& docker-php-ext-install pdo_mysql mbstring zip gd
RUN a2enmod rewrite
EXPOSE 80
WORKDIR /var/www/html
RUN curl -LOk https://github.com/tastyigniter/setup/archive/master.zip && \
unzip master.zip && \
mv setup-master/* . && \
rm -r setup-master master.zip
+20 -1
View File
@@ -1,2 +1,21 @@
# tastyIgniter-
# tastyigniter
Setup TastyIgniter with Docker
Download this repository:
```
git clone https://github.com/ocrot/tastyigniter.git
cd tastyigniter
```
Create and edit .env file:
```
cp .env.example .env
nano .env
```
Run docker-compose:
```
docker-compose up -d
```
Open http://localhost:80/setup.php in your browser (replace localhost with your server's ip or domain name) and follow the instructions.
+22
View File
@@ -0,0 +1,22 @@
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db-data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
web:
depends_on:
- db
build: .
ports:
- "80:80"
volumes:
- .:/var/www/html
volumes:
db-data:
+4
View File
@@ -0,0 +1,4 @@
MYSQL_ROOT_PASSWORD=root_password
MYSQL_DATABASE=database
MYSQL_USER=user
MYSQL_PASSWORD=password