Skip to content

Instantly share code, notes, and snippets.

@ellisio
Created November 9, 2016 19: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 ellisio/b0743b55b6bd3f02c024c7a90ea445dc to your computer and use it in GitHub Desktop.
Save ellisio/b0743b55b6bd3f02c024c7a90ea445dc to your computer and use it in GitHub Desktop.
version: '2'
#
# Network Configuration
#
networks:
default:
#
# Services Configuration
#
services:
#
# Data Disk
#
data:
image: ellisio/baseimage:3.4
volumes:
- .:/app
- /var/lib/mysql
- /data
#
# Backend Services
#
## Queue
beanstalkd:
image: ellisio/beanstalkd:1.10
networks:
- default
ports:
- 11300:11300
queue:
image: ellisio/artisan-queue:7.0.12
restart: always
command: php artisan queue:work --queue=default --tries=3 --timeout=60
environment:
RUNNING_IN_CONTAINER: "true"
volumes_from:
- data
networks:
- default
## Database
db:
image: mariadb:10.1.18
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
volumes_from:
- data
networks:
- default
ports:
- 3306:3306
## Caching
redis:
image: redis:3.2.5-alpine
command: redis-server --appendonly yes
volumes_from:
- data
networks:
- default
ports:
- 6379:6379
## PHP-FPM
php-fpm:
image: ellisio/php-fpm:7.0.12
environment:
RUNNING_IN_CONTAINER: "true"
volumes_from:
- data
networks:
- default
## Scheduler
scheduler:
image: ellisio/artisan-schedule:7.0.12
environment:
RUNNING_IN_CONTAINER: "true"
volumes_from:
- data
networks:
- default
## Nginx
nginx:
image: ellisio/nginx:1.11.5
environment:
- PHP_FPM_HOST=php-fpm
- PHP_FPM_PORT=9000
volumes_from:
- data
networks:
- default
ports:
- 80:80
#
# Frontend Services
#
## Beanstalkd Console
beanstalkd-console:
image: ellisio/beanstalkd-console:1.7.5
networks:
- default
ports:
- 2080:2080
ngrok:
image: ellisio/ngrok:2.1.14
env_file: ./.env
environment:
HTTP_PORT: nginx:80
networks:
- default
ports:
- 4040:4040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment