-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
86 lines (78 loc) · 1.54 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '2'
services:
app:
build: .
image: larabuild_app
user: root
command: ['/usr/sbin/php-fpm7.2']
env_file: .env.local
environment:
- DB_HOST=db
- MAIL_DRIVER=smtp
- MAIL_HOST=mailhog
- MAIL_PORT=1025
- MEMCACHED_HOST=memcached
- REDIS_HOST=redis
restart: unless-stopped
volumes:
- ./:/workspace
depends_on:
- db
- mailhog
- memcached
- redis
db:
image: mysql:5.7
env_file: .env.local
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
ports:
- 3306:3306
restart: unless-stopped
volumes:
- db:/var/lib/mysql
horizon:
image: larabuild_app
command: ['php', 'artisan', 'horizon']
env_file: .env.local
environment:
- DB_HOST=db
- MAIL_DRIVER=smtp
- MAIL_HOST=mailhog
- MAIL_PORT=1025
- MEMCACHED_HOST=memcached
- REDIS_HOST=redis
depends_on:
- db
- mailhog
- memcached
- redis
restart: unless-stopped
volumes:
- ./:/workspace
mailhog:
image: mailhog/mailhog:latest
ports:
- 8025:8025
restart: unless-stopped
memcached:
image: memcached:1.5-alpine
restart: unless-stopped
redis:
image: redis:4-alpine
restart: unless-stopped
volumes:
- redis:/data
web:
image: nginx:stable
depends_on:
- app
ports:
- 80:80
restart: unless-stopped
volumes:
- ./:/workspace
- ./templates/nginx.conf:/etc/nginx/conf.d/default.conf
volumes:
db:
redis: