mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
add revive
This commit is contained in:
parent
64b1e6086b
commit
00018c9c58
31
revive/Dockerfile
Normal file
31
revive/Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
#
|
||||
# Dockerfile for revive
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
RUN apk add -U git \
|
||||
gzip \
|
||||
nginx \
|
||||
php-apcu \
|
||||
php-curl \
|
||||
php-fpm \
|
||||
php-gd \
|
||||
php-mysql \
|
||||
php-openssl \
|
||||
php-phar \
|
||||
php-xml \
|
||||
php-zlib \
|
||||
tar \
|
||||
&& wget -O- http://download.revive-adserver.com/revive-adserver-3.2.1.tar.gz | tar xz --strip 1 \
|
||||
&& chown -R nobody:nobody . \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD php-fpm && nginx -g 'daemon off;'
|
4
revive/README.md
Normal file
4
revive/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
revive
|
||||
======
|
||||
|
||||
The Free Open Source Ad Server formerly known as OpenX Source.
|
14
revive/docker-compose.yml
Normal file
14
revive/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
revive:
|
||||
image: vimagick/revive
|
||||
ports:
|
||||
- "8080:80"
|
||||
links:
|
||||
- mysql
|
||||
restart: always
|
||||
|
||||
mysql:
|
||||
image: mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_DATABASE=revive
|
||||
restart: always
|
26
revive/nginx.conf
Normal file
26
revive/nginx.conf
Normal file
@ -0,0 +1,26 @@
|
||||
user nobody;
|
||||
worker_processes 4;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /var/www/html;
|
||||
index index.php;
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user