Skip to content

Instantly share code, notes, and snippets.

@k2levin
Last active July 13, 2017 07:24
Show Gist options
  • Save k2levin/5a6d49e08bf8f12ce6e79d1ae4693d54 to your computer and use it in GitHub Desktop.
Save k2levin/5a6d49e08bf8f12ce6e79d1ae4693d54 to your computer and use it in GitHub Desktop.
Docker compose for Jenkins
version: "3"
services:
db:
image: mysql:5.7
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=laravel
networks:
- db-network
redis:
image: redis:alpine
networks:
- redis-network
php:
image: k2levin/php-laravel:latest
volumes:
- "$PWD/:/var/www/app/laravel/"
depends_on:
- db
- redis
networks:
- redis-network
- db-network
networks:
db-network:
redis-network:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment