Created
February 19, 2020 16:31
-
-
Save Mo0812/fd826e5fbd19b7173b0e94ccc735940b to your computer and use it in GitHub Desktop.
API-G Demo Gist
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:7.2.2-apache | |
RUN a2enmod rewrite | |
RUN apt-get update && apt-get install -y libzip-dev libpng-dev libjpeg62-turbo-dev git zip && docker-php-ext-configure gd --with-png-dir=/usr/include --with-jpeg-dir=/usr/include && docker-php-ext-install pdo_mysql mbstring zip gd |
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" | |
services: | |
db: | |
image: mysql:5.7 | |
container_name: mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: dev | |
MYSQL_USER: dev | |
MYSQL_PASSWORD: dev | |
TZ: Europe/Paris | |
networks: | |
- backend | |
volumes: | |
- db_data:/var/lib/mysql | |
ports: | |
- 33306:3306 | |
web: | |
build: ./conf/php | |
container_name: php | |
depends_on: | |
- db | |
volumes: | |
- ./php/:/var/www/html/ | |
networks: | |
- backend | |
ports: | |
- 8000:80 | |
environment: | |
- ENV_MODE=dev | |
stdin_open: true | |
tty: true | |
networks: | |
backend: | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment