Newer
Older
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
#
# monitoring
#
# this docker-compose can be used to run a development environment
#
version: "3.7"
services:
web:
image: cylab/laravel-dev
depends_on:
- redis
- mysql
ports:
- 8080:80
volumes:
- .:/var/www/html
env_file: env.dev
environment:
WAIT_HOSTS: mysql:3306
queue:
image: cylab/laravel-dev
depends_on:
- web
volumes:
- .:/var/www/html
command: ["php", "artisan", "queue:work", "--verbose", "--tries=3", "--timeout=60"]
restart: unless-stopped
env_file: env.dev
environment:
WAIT_HOSTS: web:80
scheduler:
image: cylab/laravel-dev
depends_on:
- web
volumes:
- .:/var/www/html
command: ["/scheduler.sh"]
env_file: env.dev
environment:
WAIT_HOSTS: web:80
node:
working_dir: /app
volumes:
- .:/app
# https://stackoverflow.com/a/72060809
entrypoint: /bin/sh -c "mkdir /tmp/npm && npm config set cache /tmp/npm --global && chown -R 1000:1000 /tmp/npm && npm install && npm run watch-poll"
depends_on:
- web
redis:
image: redis:4-alpine
volumes:
- ./volumes/redis:/data
mysql:
image: mysql:5.7
volumes:
- ./volumes/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: laravel
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025