Skip to content

Instantly share code, notes, and snippets.

@dsmrt
Created February 8, 2018 17:33
Show Gist options
  • Save dsmrt/932c0ee8238ff25eb7327b19af5bb828 to your computer and use it in GitHub Desktop.
Save dsmrt/932c0ee8238ff25eb7327b19af5bb828 to your computer and use it in GitHub Desktop.
Flipbox NGINX/PHP 7.2 FPM CraftCMS docker-compose.yml
# REPOs
# https://hub.docker.com/r/flipbox/php/
version: "3"
services:
web:
image: flipbox/php:72-fpm-alpine
volumes:
- .:/app/
# point to your fpm inis
- ./general.ini:/usr/local/etc/php/conf.d/general.ini
- ./xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
depends_on:
- mysql
environment:
#configure your env vars
DB_DATABASE: #<SET ME>
SITE_URL: http://localhost:8080
SECURITY_KEY: #<SET ME>
nginx:
image: nginx:1.13
ports:
- 8080:8080
volumes:
# Point to your nginx config
# Check out https://github.com/nystudio107/nginx-craft for configuration best practices
- ./default.conf:/etc/nginx/conf.d/default.conf
- .:/app/
depends_on:
- web
mysql:
image: mysql:5.6
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: #<SET ME>
MYSQL_DATABASE: #<SET ME>
MYSQL_USER: #<SET ME>
MYSQL_PASSWORD: #<SET ME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment