-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
62 lines (54 loc) · 1.3 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3"
services:
laravel:
build:
context: .
dockerfile: Dockerfile-dev
container_name: laravel
working_dir: /app
volumes:
- ./src:/app
web:
image: nginx
container_name: web
depends_on:
- laravel
environment:
- NGINX_MAX_BODY=100M
command: /bin/bash -c "envsubst \"`for v in $$(compgen -v);do printf '$${%s} ' $$v;done`'\" < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
ports:
- 8000:80
volumes:
- ./src:/app
- ./docker/default.template:/etc/nginx/conf.d/default.template
redis:
container_name: redis
image: "redis:alpine"
beanstalk:
container_name: beanstalk
image: "jonbaldie/beanstalkd"
queue:
image: vivifyideas/php-fpm-production-docker-alpine:7.4
container_name: queue
working_dir: /app
command: 'php artisan queue:listen --tries=3 --timeout=60'
volumes:
- ./src:/app
db:
image: mariadb:10.2
container_name: db
environment:
MYSQL_DATABASE: laravel-boilerplate
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
volumes:
- db:/var/lib/mysql
mailhog:
image: "mailhog/mailhog"
ports:
- 8025:8025
volumes:
db: