Skip to content

Instantly share code, notes, and snippets.

@joanhey
Last active August 19, 2019 11:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joanhey/a371ed3ad465583c710eed8ad60d89c0 to your computer and use it in GitHub Desktop.
Save joanhey/a371ed3ad465583c710eed8ad60d89c0 to your computer and use it in GitHub Desktop.
Docker con apache y php7

KumbiaPHP Docker

Copiar los 2 ficheros en la carpeta de kumbia, al lado del core y default.

docker-compose up -d --build

Mirar la web en localhost:8080

La opción --build, es sólo para la primera vez o cuando se cambian los ficheros del docker.

docker-compose up (muestra el log en la terminal)

docker-compose up -d (como demonio, sin datos en la terminal)

kumbia:
build: .
dockerfile: Dockerfile
ports:
- "8080:80"
volumes:
- .:/var/www
FROM php:7.0-apache
RUN apt-get update \
&& apt-get install -y git zlib1g-dev \
&& docker-php-ext-install zip opcache\
&& a2enmod rewrite \
&& sed -i 's!/var/www/html!/var/www!g' /etc/apache2/apache2.conf
WORKDIR /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment