mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add drupal
This commit is contained in:
parent
dc5d99dd4f
commit
73be3c85c4
@ -109,6 +109,7 @@ dockerfiles
|
|||||||
|
|
||||||
- [x] centurylink/watchtower
|
- [x] centurylink/watchtower
|
||||||
- [x] drone/drone
|
- [x] drone/drone
|
||||||
|
- [x] drupal
|
||||||
- [x] ghost
|
- [x] ghost
|
||||||
- [x] gitlab/gitlab-ce
|
- [x] gitlab/gitlab-ce
|
||||||
- [ ] gliderlabs/logspout
|
- [ ] gliderlabs/logspout
|
||||||
|
33
drupal/README.md
Normal file
33
drupal/README.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
drupal
|
||||||
|
======
|
||||||
|
|
||||||
|
```
|
||||||
|
drupal:
|
||||||
|
image: drupal
|
||||||
|
ports:
|
||||||
|
- "8888:80"
|
||||||
|
links:
|
||||||
|
- mysql
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:3306:3306"
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
|
- MYSQL_DATABASE=drupal
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
cd ~/fig/drupal/
|
||||||
|
docker-compose up -d mysql
|
||||||
|
sleep 30
|
||||||
|
docker-compose up -d drupal
|
||||||
|
|
||||||
|
docker cp drupal_mysql_1:/usr/bin/mysql /usr/local/bin/
|
||||||
|
mysql -h127.0.0.1 -P3306 -uroot -proot drupal
|
||||||
|
|
||||||
|
firefox http://127.0.0.1:8888
|
||||||
|
```
|
7
drupal/docker-compose.yml
Normal file
7
drupal/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
drupal:
|
||||||
|
image: drupal
|
||||||
|
ports:
|
||||||
|
- "8888:80"
|
||||||
|
volumes:
|
||||||
|
- /var/www/html/sites
|
||||||
|
restart: always
|
@ -9,11 +9,12 @@ ENV H2O_VER 1.7.0
|
|||||||
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
|
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
|
||||||
ENV H2O_DIR h2o-${H2O_VER}
|
ENV H2O_DIR h2o-${H2O_VER}
|
||||||
|
|
||||||
RUN apk add -U build-base \
|
RUN set -xe \
|
||||||
cmake \
|
&& apk add -U build-base \
|
||||||
curl \
|
cmake \
|
||||||
linux-headers \
|
curl \
|
||||||
zlib-dev \
|
linux-headers \
|
||||||
|
zlib-dev \
|
||||||
&& curl -sSL ${H2O_URL} | tar xz \
|
&& curl -sSL ${H2O_URL} | tar xz \
|
||||||
&& cd ${H2O_DIR} \
|
&& cd ${H2O_DIR} \
|
||||||
&& cmake -DWITH_BUNDLED_SSL=on . \
|
&& cmake -DWITH_BUNDLED_SSL=on . \
|
||||||
@ -28,9 +29,7 @@ RUN apk add -U build-base \
|
|||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY h2o.conf /etc/
|
COPY h2o.conf /etc/
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["h2o", "-c", "/etc/h2o.conf"]
|
CMD ["h2o", "-c", "/etc/h2o.conf"]
|
||||||
|
@ -9,11 +9,12 @@ ENV H2O_VER 1.7.0
|
|||||||
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
|
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
|
||||||
ENV H2O_DIR h2o-${H2O_VER}
|
ENV H2O_DIR h2o-${H2O_VER}
|
||||||
|
|
||||||
RUN apk add -U build-base \
|
RUN set -xe \
|
||||||
cmake \
|
&& apk add -U build-base \
|
||||||
curl \
|
cmake \
|
||||||
linux-headers \
|
curl \
|
||||||
zlib-dev \
|
linux-headers \
|
||||||
|
zlib-dev \
|
||||||
&& curl -sSL ${H2O_URL} | tar xz \
|
&& curl -sSL ${H2O_URL} | tar xz \
|
||||||
&& cd ${H2O_DIR} \
|
&& cd ${H2O_DIR} \
|
||||||
&& cmake -DWITH_BUNDLED_SSL=on . \
|
&& cmake -DWITH_BUNDLED_SSL=on . \
|
||||||
@ -28,9 +29,7 @@ RUN apk add -U build-base \
|
|||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY h2o.conf /etc/
|
COPY h2o.conf /etc/
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["h2o", "-c", "/etc/h2o.conf"]
|
CMD ["h2o", "-c", "/etc/h2o.conf"]
|
||||||
|
@ -38,6 +38,7 @@ server:
|
|||||||
|
|
||||||
client:
|
client:
|
||||||
image: vimagick/rtmp-client-arm
|
image: vimagick/rtmp-client-arm
|
||||||
|
# command: ffmpeg -i /dev/video0 -vf "hflip,vflip" -f flv rtmp://cctv.datageek.info/live/webcam
|
||||||
devices:
|
devices:
|
||||||
- /dev/video0:/dev/video0
|
- /dev/video0:/dev/video0
|
||||||
environment:
|
environment:
|
||||||
@ -45,6 +46,8 @@ client:
|
|||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> You can run customized `ffmpeg` command.
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user