Skip to content

Commit

Permalink
add Docker repo
Browse files Browse the repository at this point in the history
  • Loading branch information
airplayx committed Nov 1, 2023
1 parent bb459f0 commit a86a68b
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 344 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MYSQL_DBNAME=eoLinker
MYSQL_DBNAME=eolinker_os
MYSQL_PASSWORD=root
16 changes: 6 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
FROM php:7.4-fpm
FROM php:7.1-apache

WORKDIR /var/www/html

COPY . .

RUN pecl install redis
RUN apt-get update && \
apt-get install -y \
libzip-dev \
libhiredis-dev \
wget \
cron \
&& docker-php-ext-install pdo pdo_mysql zip pcntl fileinfo \
&& docker-php-ext-enable redis
libonig-dev \
&& docker-php-ext-install pdo pdo_mysql zip pcntl fileinfo

RUN chmod -R 777 /var/www/html

EXPOSE 9000
CMD ["php-fpm"]
EXPOSE 80
24 changes: 0 additions & 24 deletions deploy/nginx/blocklist.conf

This file was deleted.

58 changes: 0 additions & 58 deletions deploy/nginx/conf.d/default.conf

This file was deleted.

21 changes: 0 additions & 21 deletions deploy/nginx/conf.d/ssl/localhost.crt

This file was deleted.

28 changes: 0 additions & 28 deletions deploy/nginx/conf.d/ssl/localhost.key

This file was deleted.

97 changes: 0 additions & 97 deletions deploy/nginx/mime.types

This file was deleted.

93 changes: 0 additions & 93 deletions deploy/nginx/nginx.conf

This file was deleted.

12 changes: 0 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,8 @@ services:
image: airplayx/eolinker
container_name: eolinker
restart: unless-stopped
networks:
- app-network
nginx:
image: nginx:1.15.8
container_name: nginx
restart: unless-stopped
ports:
- '80:80'
- '443:443'
volumes:
- ./deploy/nginx:/etc/nginx
- ./deploy/nginx/log:/var/log/nginx
- ./deploy/web:/www/web
networks:
- app-network
Expand Down

0 comments on commit a86a68b

Please sign in to comment.