1
- version : " 3"
1
+ version : " 3.5 "
2
2
services :
3
3
4
4
# https://docs.docker.com/samples/library/php/
5
5
php72 :
6
6
container_name : yii2_queue_php72
7
7
build :
8
- context : .
9
- dockerfile : tests/app/docker/php/7.2/Dockerfile
10
- command : &php_command ["sleep", "infinity"]
8
+ context : ..
9
+ dockerfile : tests/docker/php/7.2/Dockerfile
10
+ volumes :
11
+ - ./runtime/composer72:/root/.composer
12
+ - ..:/code
11
13
dns : &php_dns
12
- - 8.8.8.8
13
- - 4.4.4.4
14
- volumes : &php_volumes
15
- # - .:/code
16
- - ./tests/app/runtime/composer:/root/.composer
14
+ - 8.8.8.8
15
+ - 4.4.4.4
17
16
environment : &php_environment
18
17
MYSQL_HOST : mysql
19
18
MYSQL_PORT : 3306
@@ -37,99 +36,115 @@ services:
37
36
GEARMAN_HOST : gearmand
38
37
GEARMAN_PORT : 4730
39
38
depends_on : &php_depends_on
40
- - mysql
41
- - postgres
42
- - redis
43
- - rabbitmq
44
- - beanstalk
45
- - gearmand
39
+ - mysql
40
+ - postgres
41
+ - redis
42
+ - rabbitmq
43
+ - beanstalk
44
+ - gearmand
45
+ networks :
46
+ net : {}
46
47
php71 :
47
48
container_name : yii2_queue_php71
48
49
build :
49
- context : .
50
- dockerfile : tests/app/docker/php/7.1/Dockerfile
51
- command : *php_command
50
+ context : ..
51
+ dockerfile : tests/docker/php/7.1/Dockerfile
52
+ volumes :
53
+ - ./runtime/composer71:/root/.composer
52
54
dns : *php_dns
53
- volumes : *php_volumes
54
55
environment : *php_environment
55
56
depends_on : *php_depends_on
57
+ networks :
58
+ net : {}
56
59
php70 :
57
60
container_name : yii2_queue_php70
58
61
build :
59
- context : .
60
- dockerfile : tests/app/docker/php/7.0/Dockerfile
61
- command : *php_command
62
+ context : ..
63
+ dockerfile : tests/docker/php/7.0/Dockerfile
64
+ volumes :
65
+ - ./runtime/composer70:/root/.composer
62
66
dns : *php_dns
63
- volumes : *php_volumes
64
67
environment : *php_environment
65
68
depends_on : *php_depends_on
69
+ networks :
70
+ net : {}
66
71
php56 :
67
72
container_name : yii2_queue_php56
68
73
build :
69
- context : .
70
- dockerfile : tests/app/docker/php/5.6/Dockerfile
71
- command : *php_command
74
+ context : ..
75
+ dockerfile : tests/docker/php/5.6/Dockerfile
76
+ volumes :
77
+ - ./runtime/composer56:/root/.composer
72
78
dns : *php_dns
73
- volumes : *php_volumes
74
79
environment : *php_environment
75
80
depends_on : *php_depends_on
81
+ networks :
82
+ net : {}
76
83
77
84
# https://docs.docker.com/samples/library/mysql/
78
85
mysql :
79
- container_name : yii2-queue-mysql
80
- image : mysql:8.0
86
+ container_name : yii2_queue_mysql
87
+ image : mysql:5.7
81
88
ports :
82
- - 3306:3306
83
- volumes :
84
- - ./tests/app/docker/mysql/8.0/auth.cnf:/etc/mysql/conf.d/auth.cnf:ro
85
- # - ./tests/app/runtime/mysql:/var/lib/mysql
89
+ - 3307:3306
86
90
environment :
87
91
MYSQL_ALLOW_EMPTY_PASSWORD : 1
88
92
MYSQL_USER : yii2_queue_test
89
93
MYSQL_PASSWORD : yii2_queue_test
90
94
MYSQL_DATABASE : yii2_queue_test
95
+ networks :
96
+ net : {}
91
97
92
98
# https://docs.docker.com/samples/library/postgres/
93
99
postgres :
94
100
container_name : yii2_queue_postgres
95
101
image : postgres:10.4
96
102
ports :
97
- - 5432:5432
98
- # volumes:
99
- # - ./tests/app/runtime/postgres:/var/lib/postgresql/data
103
+ - 5433:5432
100
104
environment :
101
105
POSTGRES_USER : yii2_queue_test
102
106
POSTGRES_PASSWORD : yii2_queue_test
103
107
POSTGRES_DB : yii2_queue_test
108
+ networks :
109
+ net : {}
104
110
105
111
# https://docs.docker.com/samples/library/redis/
106
112
redis :
107
113
container_name : yii2_queue_redis
108
114
image : redis:4.0
109
115
ports :
110
- - 6379 :6379
111
- # volumes :
112
- # - ./tests/app/runtime/redis:/data
116
+ - 6380 :6379
117
+ networks :
118
+ net : {}
113
119
114
120
# https://docs.docker.com/samples/library/rabbitmq/
115
121
rabbitmq :
116
122
container_name : yii2_queue_rabbitmq
117
123
image : rabbitmq:3.7
118
124
ports :
119
- - 5672 :5672
120
- # volumes :
121
- # - ./tests/app/runtime/rabbitmq:/var/lib/rabbitmq
125
+ - 5673 :5672
126
+ networks :
127
+ net : {}
122
128
123
129
# https://hub.docker.com/r/schickling/beanstalkd/
124
130
beanstalk :
125
131
container_name : yii2_queue_beanstalk
126
132
image : schickling/beanstalkd
127
133
ports :
128
- - 11300:11300
134
+ - 11301:11300
135
+ networks :
136
+ net : {}
129
137
130
138
# https://hub.docker.com/r/artefactual/gearmand/
131
139
gearmand :
132
140
container_name : yii2_queue_gearmand
133
141
image : artefactual/gearmand
134
142
ports :
135
- - 4730:4730
143
+ - 4731:4730
144
+ networks :
145
+ net : {}
146
+
147
+ networks :
148
+ net :
149
+ name : yii2_queue_net
150
+
0 commit comments