mirror of
https://github.com/BillyOutlast/UNIT3D-Docker.git
synced 2026-07-01 08:11:44 -04:00
Initial Build
This commit is contained in:
+52
@@ -0,0 +1,52 @@
|
||||
FROM archlinux:latest
|
||||
|
||||
# Install base dependencies
|
||||
RUN pacman -Sy --noconfirm archlinux-keyring \
|
||||
&& pacman-key --init \
|
||||
&& pacman-key --populate archlinux \
|
||||
&& pacman -Syu --noconfirm --needed \
|
||||
git \
|
||||
base-devel \
|
||||
mariadb \
|
||||
redis \
|
||||
nginx \
|
||||
php \
|
||||
php-fpm \
|
||||
php-gd \
|
||||
php-intl \
|
||||
php-pgsql \
|
||||
php-sqlite \
|
||||
php-redis \
|
||||
php-imagick \
|
||||
composer \
|
||||
nodejs \
|
||||
npm \
|
||||
yarn \
|
||||
unzip \
|
||||
&& yes | pacman -Scc
|
||||
|
||||
# Set up MariaDB
|
||||
RUN mkdir -p /run/mysqld && chown mysql:mysql /run/mysqld
|
||||
|
||||
# Clone UNIT3D repository
|
||||
WORKDIR /var/www
|
||||
RUN git clone https://github.com/HDInnovations/UNIT3D.git unit3d
|
||||
|
||||
# Copy env file into UNIT3D directory
|
||||
COPY env /var/www/unit3d/.env
|
||||
|
||||
WORKDIR /var/www/unit3d
|
||||
# Enable required PHP extensions
|
||||
RUN sed -i '/^;zend_extension=opcache/s/^;//' /etc/php/php.ini \
|
||||
&& sed -i '/^;extension=iconv/s/^;//' /etc/php/php.ini \
|
||||
&& sed -i '/^;extension=bcmath/s/^;//' /etc/php/php.ini \
|
||||
&& sed -i '/^;extension=intl/s/^;//' /etc/php/php.ini
|
||||
|
||||
# Install PHP dependencies
|
||||
RUN composer install --no-interaction --prefer-dist
|
||||
|
||||
# Install JS dependencies
|
||||
RUN yarn install
|
||||
|
||||
# Expose necessary ports
|
||||
EXPOSE 80 443 3306 6379
|
||||
@@ -0,0 +1,9 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
env_file:
|
||||
- env
|
||||
ports:
|
||||
- "8080:8080"
|
||||
@@ -0,0 +1,49 @@
|
||||
APP_NAME=UNIT3D
|
||||
APP_ENV=prod
|
||||
APP_KEY=
|
||||
APP_DEBUG=false
|
||||
APP_LOG_LEVEL=debug
|
||||
APP_URL=http://localhost
|
||||
|
||||
VITE_ECHO_ADDRESS=http://localhost:8443
|
||||
|
||||
LOG_CHANNEL=daily
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=unit3d
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=
|
||||
|
||||
BROADCAST_CONNECTION=redis
|
||||
CACHE_STORE=redis
|
||||
SESSION_DRIVER=redis
|
||||
SESSION_CONNECTION=session
|
||||
SESSION_LIFETIME=120
|
||||
SESSION_SECURE_COOKIE=true
|
||||
QUEUE_CONNECTION=redis
|
||||
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
MAIL_MAILER=log
|
||||
MAIL_HOST=smtp.mailtrap.io
|
||||
MAIL_PORT=2525
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
MAIL_FROM_ADDRESS='support@unit3d.site'
|
||||
MAIL_FROM_NAME='UNIT3D Support'
|
||||
|
||||
DEFAULT_OWNER_NAME=UNIT3D
|
||||
DEFAULT_OWNER_EMAIL=unit3d@example.com
|
||||
DEFAULT_OWNER_PASSWORD=UNIT3D
|
||||
|
||||
TMDB_API_KEY=
|
||||
TWITCH_CLIENT_ID=
|
||||
TWITCH_CLIENT_SECRET=
|
||||
|
||||
MEILISEARCH_HOST=http://127.0.0.1:7700
|
||||
MEILISEARCH_KEY=
|
||||
Reference in New Issue
Block a user