Last active
April 7, 2021 15:54
-
-
Save ruyjfs/00a71036b038077fcaf0b5f381c06f07 to your computer and use it in GitHub Desktop.
Comandos de inicialização dos containers do Ministério da Cultura do Brasil. Startup commands of the containers of the Ministry of Culture of Brazil.
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
# Run container Nginx | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-nginx-debian -p 80:80 culturagovbr/web-nginx-debian:0.1 | |
# Run container Nginx | PHP 5 | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-nginx-debian -p 80:80 --add-host local.salic:127.0.0.1 culturagovbr/web-nginx-php5-debian | |
# Run container Nginx | PHP 7 | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-nginx-debian -p 80:80 culturagovbr/web-nginx-php7-debian:0.1 | |
# Run container Apache | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-apache-debian -p 80:80 culturagovbr/web-apache-debian:0.1 | |
# Run container Apache | PHP 5 | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-apache-php5-debian -p 80:80 culturagovbr/web-apache-php5-debian:0.1 | |
# Run container Apache | PHP 7 | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-apache-php7-debian -p 80:80 culturagovbr/web-apache-php7\-ubuntu:0.1 | |
# Run container PostgreSQL | Debian | |
docker run --name db-postgresql-debian -p 5432:5432 -e POSTGRES_PASSWORD=123456 -e POSTGRES_USER=postgres -e PGDATA=/var/lib/postgresql/data -v /var/www/db/postgresql/data:/var/www/project/db/data -d postgres | |
# Run container NodeJS | Ionic | Cordova | Java JDK | Java SDK | |
docker run -it -p 3000:3000 -v /var/www/:/var/ culturagovbr/mobile-ionic-ubuntu --name mobile-ionic-ubuntu | |
# Dockerfile - Nginx | |
FROM debian | |
LABEL Description="web-nginx-debian" | |
MAINTAINER ruyjfs@gmail.com | |
RUN apt-get update && apt-get install -y nginx && apt-get clean && /etc/init.d/nginx start | |
VOLUME ["/var/www/html", "/var/log/apache2"] | |
EXPOSE 80 | |
# Dockerfile - Nginx e PHP 7 | |
FROM debian | |
LABEL Description="web-nginx-debian" | |
MAINTAINER ruyjfs@gmail.com | |
RUN apt-get update && apt-get install -y nginx && apt-get clean && /etc/init.d/nginx start | |
RUN apt-get install -y php5-common php5-cli php5-fpm | |
VOLUME ["/var/www/html", "/var/log/apache2"] | |
EXPOSE 80 | |
# Dockerfile - Apache Clean | |
FROM debian | |
LABEL Description="web-apache-debian" | |
MAINTAINER ruyjfs@gmail.com | |
RUN apt-get update && apt-get install -y apache2 && apt-get clean && /etc/init.d/nginx start | |
VOLUME ["/var/www/html", "/var/log/apache2"] | |
EXPOSE 80 | |
# Dockerfile - Apache PHP5 | |
FROM debian | |
LABEL Description="web-apache-php5-debian" | |
MAINTAINER ruyjfs@gmail.com | |
RUN apt-get update && apt-get install -y apache2 | |
RUN apt-get install -y mysql-client | |
RUN php5 libapache2-mod-php5 | |
RUN a2enmod rewrite | |
RUN apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl | |
RUN php5enmod mcrypt | |
RUN apt-get install -y php5-sybase && a2enmod headers | |
RUN apt-get clean && /etc/init.d/apache2 start | |
VOLUME ["/var/www/html", "/var/log/apache2"] | |
EXPOSE 80 | |
# Dockerfile - Apache + PHP5 + Mysql = LAMP | |
FROM debian | |
LABEL Description="web-apache-php5-mysql-debian" | |
MAINTAINER ruyjfs@gmail.com | |
RUN apt-get update && apt-get install -y apache2 | |
RUN apt-get install -y mysql-server mysql-client | |
RUN php5 libapache2-mod-php5 | |
RUN a2enmod rewrite | |
RUN apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl | |
RUN php5enmod mcrypt | |
RUN a2enmod headers && apt-get install php5-sybase -y | |
RUN apt-get clean && /etc/init.d/apache2 start | |
VOLUME ["/var/www/html", "/var/log/apache2"] | |
EXPOSE 80 | |
# Dockerfile - PostgreSQL | |
FROM postgres:9.5 | |
LABEL Description="db-postgresql-debian" | |
ENV LANG de_DE.utf8 | |
MAINTAINER ruyjfs@gmail.com | |
RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8 | |
RUN apt-get clean && /etc/init.d/apache2 start | |
VOLUME ["/var/www/db/postgresql/data"] | |
EXPOSE 5432 | |
# Dockerfile - Mobile | |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install python-software-properties python g++ make | |
RUN apt-get update | |
RUN apt-get install nodejs | |
RUN apt-get install npm | |
RUN npm install -g cordova ionic | |
RUN apt-get clean | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment