forked from Hasnayeen/invobook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
70 lines (63 loc) · 1.43 KB
/
docker-compose.dev.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
62
63
64
65
66
67
68
69
70
version: '3'
services:
nginx:
image: nginx
ports:
- "${APP_PORT}:80"
volumes:
- ./site.dev.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www
links:
- php
depends_on:
- php
php:
build:
context: .
dockerfile: dev.Dockerfile
volumes:
- ./:/var/www
links:
- db
- redis
depends_on:
- db
db:
image: mariadb
hostname: db
environment:
- "MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}"
- "MYSQL_DATABASE=${DB_DATABASE}"
- "MYSQL_USER=${DB_USERNAME}"
- "MYSQL_PASSWORD=${DB_PASSWORD}"
volumes:
- data-volume:/var/lib/mysql
redis:
image: redis
hostname: redis
worker:
image: php:7.2-cli
volumes:
- ./:/var/www
links:
- db
working_dir: /var/www
command: bash -c "apt-get update && docker-php-ext-install pdo_mysql bcmath && php artisan queue:work redis --sleep=1 --tries=1"
depends_on:
- php
laravel_echo_server:
image: node:boron
hostname: laravel-echo-server
ports:
- "6001:6001"
volumes:
- ./laravel-echo-server.dev.json:/usr/src/app/laravel-echo-server.json
- ./echo-server.sh:/usr/src/app/echo-server.sh
- ./:/var/www
working_dir: /usr/src/app
command: bash -c "npm install -g laravel-echo-server && cd /usr/src/app && ./echo-server.sh"
depends_on:
- redis
volumes:
data-volume:
driver: local