forked from herreracode/rabbit-mq-test-php
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
38 lines (37 loc) · 847 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
version: '3.5'
services:
app:
build:
context: .
dockerfile: Dockerfile
working_dir: /usr/src/myapp
env_file:
- .env
container_name: rabbit-test
restart: unless-stopped
volumes:
- ./:/usr/src/myapp
stdin_open: true
tty: true
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password --innodb-use-native-aio=0
restart: unless-stopped
ports:
- "${MYSQL_PORT}:3306"
tty: true
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
rabbitmq:
image: rabbitmq:3.7-management
tty: true
ports:
- "5672:5672"
- "15672:15672"
networks:
default:
external:
name: external-example