Skip to content

Instantly share code, notes, and snippets.

@daohoangson
Created October 4, 2018 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daohoangson/6f3068cc80e6caa29e8525f326d83ce3 to your computer and use it in GitHub Desktop.
Save daohoangson/6f3068cc80e6caa29e8525f326d83ce3 to your computer and use it in GitHub Desktop.
Xfrocks/Api on PHP 5.6.34
version: '2.3'
services:
php:
build:
context: .
links:
- mysql
ports:
- '80:80'
volumes:
- ./xenforo:/var/www/html
mysql:
image: mysql:5.7.23
environment:
MYSQL_DATABASE: xenforo2
MYSQL_ROOT_PASSWORD: root
ports:
- '3306:3306'
volumes:
- .data/mysql:/var/lib/mysql
FROM php:5.6.34-apache
RUN apt-get update && apt-get install --no-install-recommends -y mysql-client
RUN docker-php-ext-install mysqli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment