Skip to content

Instantly share code, notes, and snippets.

@Spittal
Created September 15, 2018 02:43
Show Gist options
  • Save Spittal/e309593e0aa102882640f9a5c5f60d98 to your computer and use it in GitHub Desktop.
Save Spittal/e309593e0aa102882640f9a5c5f60d98 to your computer and use it in GitHub Desktop.
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