Skip to content

Instantly share code, notes, and snippets.

@agoalofalife
Created July 26, 2017 09:15
Show Gist options
  • Save agoalofalife/59d54f2c1481b1e18ff79202f3a0a0ba to your computer and use it in GitHub Desktop.
Save agoalofalife/59d54f2c1481b1e18ff79202f3a0a0ba to your computer and use it in GitHub Desktop.
flarum docker
version: '2'
services:
nginx:
image: nginx:latest
ports:
- "8010:80"
- "442:443"
volumes:
- ./hosts:/etc/nginx/conf.d
- ./www:/var/www
- ./logs:/var/log/nginx
links:
- php
php:
image: agoalofalife/docker-php
links:
- mysql
volumes:
- ./www:/var/www
mysql:
image: mysql:8
ports:
- "3307:3306"
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_USER: root
MYSQL_DATABASE: flarum
MYSQL_ROOT_PASSWORD: password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment