services:
httpd:
build:
context: .
dockerfile: Dockerfile
ports:
- 8180:80
links:
- maria_db:db
volumes:
- ./:/app:delegated
- ./volumes/www.example.com.conf:/etc/apache2/sites-enabled/www.example.com.conf:delegated
- ./volumes/tech2towards.com.conf:/etc/apache2/sites-enabled/tech2towards.com.conf:delegated
- ./volumes/logs:/var/log/apache2:delegated
- ./volumes/custom.ini:/usr/local/etc/php/conf.d/custom.ini:delegated
maria_db:
container_name: mariadb
image: mariadb
environment:
MYSQL_DATABASE: demo_db
MYSQL_ROOT_PASSWORD: docker
ports:
- 3306:3306
expose:
- "3306"
volumes:
- ./volumes/mysql:/var/lib/mysql
- ./volumes/mysqllogs:/var/log/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- maria_db:db
ports:
- 8181:80
environment:
PMA_USER: root
PMA_PASSWORD: docker
#ENV PATH="/app/vendor/bin:$PATH"
# install the PHP extensions we need
RUN apt-get update \
&& apt-get install -y vim \
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip intl gmp exif \
&& a2enmod rewrite
RUN a2enmod rewrite \
&& a2enmod headers \
#COPY dev/docker-init-httpd.sh /usr/local/bin/
#RUN ln -s usr/local/bin/docker-init-httpd.sh /docker-init-env.sh # backwards compat
#CMD docker-init-httpd.sh
1) apt-get install docker-compose
2) docker-compose config
3) docker-compose up
Dockerfile For Nodejs
No comments:
Post a Comment
testing