forked from REBELinBLUE/deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (77 loc) · 1.77 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
87
version: "3.1"
services:
node:
build: docker/node
volumes:
- .:/application
ports:
- "6001:6001"
links:
- redis
beanstalkd:
build: docker/beanstalkd
redis:
image: redis:6.0.1-alpine
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: deployer
MYSQL_USER: deployer
MYSQL_PASSWORD: secret
volumes:
- data:/var/lib/mysql
nginx:
build: docker/nginx
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:80"
links:
- php
- node
queue:
build: docker/artisan
command: php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1
volumes:
- .:/application
- ./docker/php/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
links:
- beanstalkd
- mysql
- redis
broadcast:
build: docker/artisan
command: php artisan queue:work --queue=deployer-default --sleep=3 --tries=1
volumes:
- .:/application
- ./docker/php/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
links:
- beanstalkd
- mysql
- redis
composer:
build: docker/composer
environment:
COMPOSER_ALLOW_SUPERUSER: 1
volumes:
- .:/application
links:
- mysql
php:
build: docker/php
volumes:
- .:/application
- ./docker/php/php-fpm.conf:/usr/local/etc/php-fpm.d/php-fpm.conf
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./docker/php/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
links:
- beanstalkd
- mysql
- redis
volumes:
data:
driver: local