Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker compose file from SBVR
version: '3'
services:
fpm:
image: sbvr/laravel-fpm:2.1.2
volumes:
- app:/var/www
networks:
- appnet
worker:
image: sbvr/laravel-worker:2.1.2
volumes:
- app:/var/www
networks:
- appnet
cron:
image: sbvr/laravel-cron:2.1.2
volumes:
- app:/var/www
networks:
- appnet
nginx:
image: sbvr/laravel-nginx:2.1.2
volumes:
- app:/var/www
environment:
- PHP_UPSTREAM=fpm
depends_on:
- fpm
networks:
- appnet
socket:
image: sbvr/laravel-socket:2.1.2
environment:
- REDIS_HOST=redis
depends_on:
- redis
networks:
- appnet
db:
image: mysql:5
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_DATABASE=db
- MYSQL_USER=dbuser
- MYSQL_PASSWORD=dbpassword
- MYSQL_ROOT_PASSWORD=dbpassword
networks:
- appnet
redis:
image: redis
volumes:
- redis:/data
networks:
- appnet
mailhog:
image: mailhog/mailhog
networks:
- appnet
volumes:
db:
redis:
app:
networks:
appnet:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment