mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-04 16:13:42 +00:00
[Init]
This commit is contained in:
1 parent
3426cf1da6
commit
c5567c623e
5 files changed
+69
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
.env
|
||||
@@ -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
@@ -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.
|
||||
@@ -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:
|
||||
@@ -0,0 +1,4 @@
|
||||
MYSQL_ROOT_PASSWORD=root_password
|
||||
MYSQL_DATABASE=database
|
||||
MYSQL_USER=user
|
||||
MYSQL_PASSWORD=password
|
||||
Reference in new issue
Block a user