Created
April 18, 2019 18:29
-
-
Save designermonkey/17facf7e7d05be1de3012d1de20e961f to your computer and use it in GitHub Desktop.
Symphony CMS with Docker
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
version: '3.5' | |
services: | |
database: | |
image: mariadb:bionic | |
environment: | |
- MYSQL_ROOT_PASSWORD=symphony | |
- MYSQL_DATABASE=symphony | |
- MYSQL_USER=symphony | |
- MYSQL_PASSWORD=symphony | |
volumes: | |
- ./data:/var/lib/mysql | |
ports: | |
- 3306:3306 | |
restart: always | |
composer: | |
image: composer:1.7 | |
command: | |
- 'composer' | |
- 'install' | |
- '--verbose' | |
- '--prefer-dist' | |
- '--no-suggest' | |
- '--ignore-platform-reqs' | |
- '--no-interaction' | |
- '--no-dev' | |
- '--optimize-autoloader' | |
volumes: | |
- .:/app | |
- /etc/passwd:/etc/passwd:ro | |
- /etc/group:/etc/group:ro | |
restart: "no" | |
symphony: | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
image: symphony/php5 | |
volumes: | |
- ./:/var/www/html | |
ports: | |
- 9000:80 | |
depends_on: | |
- database | |
restart: always |
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
FROM php:5.6-apache | |
RUN docker-php-ext-install bcmath | |
RUN docker-php-ext-install mysqli | |
RUN docker-php-ext-install opcache | |
RUN docker-php-ext-install pdo_mysql | |
RUN apt-get update | |
RUN apt-get install libxslt-dev zlib1g-dev -y | |
RUN docker-php-ext-install xsl | |
RUN docker-php-ext-install zip | |
RUN a2enmod rewrite | |
EXPOSE 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment