mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-29 18:21:24 +00:00
update nginad
This commit is contained in:
parent
46ba1c9c12
commit
b89bad9689
@ -15,6 +15,7 @@ RUN apk add -U ca-certificates \
|
|||||||
php-json \
|
php-json \
|
||||||
php-openssl \
|
php-openssl \
|
||||||
php-pdo \
|
php-pdo \
|
||||||
|
php-pdo_mysql \
|
||||||
php-phar \
|
php-phar \
|
||||||
php-xml \
|
php-xml \
|
||||||
php-zlib \
|
php-zlib \
|
||||||
@ -31,6 +32,7 @@ RUN apk add -U ca-certificates \
|
|||||||
&& sed -i -e "s/'pass' => ''/'pass' => 'root'/" \
|
&& sed -i -e "s/'pass' => ''/'pass' => 'root'/" \
|
||||||
-e "s/'host' => 'localhost'/'host' => 'mysql'/" database.local.php \
|
-e "s/'host' => 'localhost'/'host' => 'mysql'/" database.local.php \
|
||||||
&& chown -R nobody:nobody . \
|
&& chown -R nobody:nobody . \
|
||||||
|
&& apk del git \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
@ -1,2 +1,30 @@
|
|||||||
nginad
|
nginad
|
||||||
======
|
======
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
|
||||||
|
```
|
||||||
|
nginad:
|
||||||
|
image: vimagick/nginad
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
links:
|
||||||
|
- mysql
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
|
- MYSQL_DATABASE=nginad
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
## run
|
||||||
|
|
||||||
|
```
|
||||||
|
$ fig up -d
|
||||||
|
$ wget https://nginad.atlassian.net/wiki/download/attachments/1114149/nginad-1.6.sql
|
||||||
|
$ docker exec -i nginad_mysql_1 mysql -u root -proot nginad < nginad-1.6.sql
|
||||||
|
$ fig restart
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user