Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.