-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 927 Bytes
/
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
version: '3'
services:
shared_rabbitmq:
container_name: task-rabbitmq
image: 'rabbitmq:3.7-management'
restart: unless-stopped
ports:
- 5630:5672
- 8090:15672
environment:
- RABBITMQ_DEFAULT_USER=guess
- RABBITMQ_DEFAULT_PASS=guess
shared_mysql:
container_name: task-mysql
image: mysql:8.0
ports:
- 3360:3306
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
healthcheck:
test: ["CMD", "mysqladmin", "--user=root", "--password=", "--host=127.0.0.1", "ping", "--silent"]
interval: 2s
timeout: 10s
retries: 10
command: ["--default-authentication-plugin=mysql_native_password"]
shared_php:
container_name: task-php
build: config/docker/php74
working_dir: /var/www
ports:
- 8082:8080
volumes:
- .:/var/www
links:
- shared_mysql
- shared_rabbitmq