forked from REBELinBLUE/deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
108 lines (98 loc) · 2.31 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.1"
services:
node:
build:
context: .
dockerfile: docker/node/Dockerfile
container_name: deployer-node
image: rebelinblue/deployer-node:latest
working_dir: /application
volumes:
- .:/application
- ./docker/node/supervisord.conf:/etc/supervisor/supervisord.conf
ports:
- "6001:6001"
links:
- redis
beanstalkd:
image: schickling/beanstalkd
container_name: deployer-beanstalkd
mailhog:
image: phpdockerio/mailhog:latest
container_name: deployer-mailhog
ports:
- "8001:8025"
redis:
image: phpdockerio/redis:latest
container_name: deployer-redis
mysql:
image: mysql:5.7
container_name: deployer-mysql
working_dir: /application
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=deployer
- MYSQL_USER=deployer
- MYSQL_PASSWORD=secret
volumes:
- data:/var/lib/mysql
nginx:
image: phpdockerio/nginx:latest
container_name: deployer-nginx
working_dir: /application
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:80"
links:
- php-fpm
- node
worker:
build:
context: .
dockerfile: docker/worker/Dockerfile
container_name: deployer-worker
image: rebelinblue/deployer-worker:latest
volumes:
- .:/application
- ./docker/worker/supervisord.conf:/etc/supervisord.conf
links:
- beanstalkd
- mysql
- redis
composer:
build:
context: .
dockerfile: docker/composer/Dockerfile
environment:
COMPOSER_ALLOW_SUPERUSER: 1
image: composer:latest
container_name: deployer-composer
volumes:
- .:/application
links:
- mysql
php-fpm:
build:
context: .
dockerfile: docker/php-fpm/Dockerfile
environment:
PHP_IDE_CONFIG: "serverName=deployer"
COMPOSER_ALLOW_SUPERUSER: 1
container_name: deployer-php-fpm
image: rebelinblue/deployer-php-fpm:latest
working_dir: /application
volumes:
- .:/application
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini
links:
- beanstalkd
- mailhog
- mysql
- redis
volumes:
data:
driver: "local"