-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
278 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,84 @@ | ||
# Settings: TYPO3 CMS | ||
####################################### | ||
# Environment Configuration | ||
# - feel free to edit - | ||
# -> for most changes you only have to | ||
# docker-compose up -d | ||
# to apply them | ||
####################################### | ||
|
||
####################################### | ||
# Webserver | ||
|
||
# TYPO3 CMS | ||
DOCUMENT_ROOT=code/ | ||
DOCUMENT_INDEX=index.php | ||
CLI_SCRIPT=php typo3/cli_dispatch.phpsh | ||
|
||
# Settings: NEOS or FLOW | ||
#DOCUMENT_ROOT=code/Web/ | ||
#DOCUMENT_INDEX=index.php | ||
#CLI_SCRIPT=php flow | ||
|
||
# Settings: SYMFONY FRAMEWORK | ||
# SYMFONY FRAMEWORK | ||
#DOCUMENT_ROOT=code/web/ | ||
#DOCUMENT_INDEX=app_dev.php | ||
#CLI_SCRIPT=php app/console | ||
|
||
# Contexts environment | ||
# NEOS or FLOW | ||
#DOCUMENT_ROOT=code/Web/ | ||
#DOCUMENT_INDEX=index.php | ||
#CLI_SCRIPT=php flow | ||
|
||
####################################### | ||
# Context environment | ||
TYPO3_CONTEXT=Development/Docker | ||
FLOW_CONTEXT=Development/Docker | ||
FLOW_REWRITEURLS=1 | ||
SYMFONY_ENV=dev | ||
SYMFONY_DEBUG=0 | ||
|
||
# Mail - Vagrant mail sandbox | ||
####################################### | ||
|
||
# Vagrant mail sandbox | ||
MAIL_GATEWAY=192.168.56.2 | ||
|
||
# Mail - Mailcatcher | ||
# Mailcatcher (container) | ||
#MAIL_GATEWAY=mail:1025 | ||
|
||
# Service settings | ||
####################################### | ||
# Internal dns routing | ||
DNS_DOMAIN=vm vm.dev | ||
|
||
####################################### | ||
# MySQL settings | ||
# -> if you change these settings | ||
# you have to remove the database: | ||
# docker-compose rm mysql | ||
# because it's stored database in | ||
# volume and provisioning is only | ||
# done once. | ||
MYSQL_ROOT_PASSWORD=dev | ||
MYSQL_USER=dev | ||
MYSQL_PASSWORD=dev | ||
MYSQL_DATABASE=typo3 | ||
|
||
####################################### | ||
# PostgreSQL settings | ||
POSTGRES_USER=dev | ||
POSTGRES_PASSWORD=dev | ||
|
||
####################################### | ||
# FTP settings | ||
FTP_USER=dev | ||
FTP_PASSWORD=dev | ||
FTP_PATH=/data/ftp/ | ||
#FTP_PATH=/docker/code/ | ||
|
||
####################################### | ||
# PHP Settings | ||
PHP_TIMEZONE=UTC | ||
|
||
####################################### | ||
# Permission settings | ||
EFFECTIVE_UID=1000 | ||
EFFECTIVE_GID=1000 | ||
|
||
####################################### | ||
# Default cli user (should be www-data) | ||
CLI_USER=www-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
FROM dockerfile/elasticsearch | ||
|
||
FROM elasticsearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM postgres:9.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubuntu:14.04 | ||
|
||
ENV VSFTP_USER dev | ||
ENV VSFTP_PASSWORD dev | ||
ENV VSFTP_PATH /data/ftp/ | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y vsftpd supervisor net-tools | ||
|
||
RUN mkdir -p /var/run/vsftpd/empty | ||
RUN mkdir -p /var/log/supervisor | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
COPY conf/supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
COPY conf/vsftpd.conf /etc/vsftpd.conf | ||
|
||
RUN mkdir -p /data/ftp/ | ||
|
||
VOLUME "/data/ftp/" | ||
|
||
EXPOSE 20 | ||
EXPOSE 21 | ||
EXPOSE 12020 | ||
EXPOSE 12021 | ||
EXPOSE 12022 | ||
EXPOSE 12023 | ||
EXPOSE 12024 | ||
EXPOSE 12025 | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
CMD ["supervisord"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[supervisord] | ||
nodaemon=true | ||
|
||
[program:vsftpd] | ||
command=vsftpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
listen=YES | ||
anonymous_enable=NO | ||
local_enable=YES | ||
write_enable=YES | ||
anon_upload_enable=NO | ||
anon_mkdir_write_enable=NO | ||
dirmessage_enable=YES | ||
use_localtime=YES | ||
xferlog_enable=YES | ||
connect_from_port_20=YES | ||
secure_chroot_dir=/var/run/vsftpd/empty | ||
pam_service_name=vsftpd | ||
rsa_cert_file=/etc/ssl/private/vsftpd.pem | ||
max_per_ip=100 | ||
max_clients=100 | ||
|
||
pasv_min_port=12020 | ||
pasv_max_port=12025 | ||
|
||
file_open_mode=0666 | ||
local_umask=000 | ||
|
||
allow_writeable_chroot=YES | ||
vsftpd_log_file=/var/log/vsftpd.log | ||
background=NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
############################# | ||
## USER | ||
############################# | ||
|
||
mkdir -p "${FTP_PATH}" | ||
|
||
if ( id "${FTP_USER}" ); then | ||
echo "User ${FTP_USER} already exists" | ||
else | ||
echo "Creating user and group ${FTP_USER}" | ||
ENC_PASS=$(perl -e 'print crypt($ARGV[0], "password")' "${FTP_PASSWORD}") | ||
groupadd -g "${EFFECTIVE_GID}" "${FTP_USER}" | ||
useradd -d "${FTP_PATH}" -m -p "${ENC_PASS}" -u "${EFFECTIVE_UID}" --gid "${FTP_USER}" -s /bin/sh "${FTP_USER}" | ||
fi | ||
|
||
############################# | ||
## COMMAND | ||
############################# | ||
|
||
case "$1" in | ||
|
||
## Supervisord (start daemons) | ||
supervisord) | ||
## Register IP | ||
ETH0_IP=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') | ||
mkdir -p /data/dns/ | ||
chmod 777 /data/dns/ | ||
echo "${ETH0_IP}" > /data/dns/ftp.ip | ||
echo "${ETH0_IP} ftp ftp_1" > /data/dns/ftp.hosts | ||
|
||
## Start services | ||
exec supervisord | ||
;; | ||
|
||
## All other commands | ||
*) | ||
exec "$@" | ||
;; | ||
esac |
Oops, something went wrong.