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] drone/drone
|
||||
- [x] drupal
|
||||
- [x] ghost
|
||||
- [x] gitlab/gitlab-ce
|
||||
- [ ] 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,7 +9,8 @@ ENV H2O_VER 1.7.0
|
||||
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
|
||||
ENV H2O_DIR h2o-${H2O_VER}
|
||||
|
||||
RUN apk add -U build-base \
|
||||
RUN set -xe \
|
||||
&& apk add -U build-base \
|
||||
cmake \
|
||||
curl \
|
||||
linux-headers \
|
||||
@ -28,9 +29,7 @@ RUN apk add -U build-base \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY h2o.conf /etc/
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["h2o", "-c", "/etc/h2o.conf"]
|
||||
|
@ -9,7 +9,8 @@ ENV H2O_VER 1.7.0
|
||||
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
|
||||
ENV H2O_DIR h2o-${H2O_VER}
|
||||
|
||||
RUN apk add -U build-base \
|
||||
RUN set -xe \
|
||||
&& apk add -U build-base \
|
||||
cmake \
|
||||
curl \
|
||||
linux-headers \
|
||||
@ -28,9 +29,7 @@ RUN apk add -U build-base \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY h2o.conf /etc/
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["h2o", "-c", "/etc/h2o.conf"]
|
||||
|
@ -38,6 +38,7 @@ server:
|
||||
|
||||
client:
|
||||
image: vimagick/rtmp-client-arm
|
||||
# command: ffmpeg -i /dev/video0 -vf "hflip,vflip" -f flv rtmp://cctv.datageek.info/live/webcam
|
||||
devices:
|
||||
- /dev/video0:/dev/video0
|
||||
environment:
|
||||
@ -45,6 +46,8 @@ client:
|
||||
restart: always
|
||||
```
|
||||
|
||||
> You can run customized `ffmpeg` command.
|
||||
|
||||
## Server
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user