forked from CodelyTV/php-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·52 lines (48 loc) · 1.14 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
version: '3'
services:
mysql:
container_name: codelytv-php_ddd_skeleton-mooc-mysql
image: mysql:8
ports:
- "3360:3306"
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
command: ["--default-authentication-plugin=mysql_native_password"]
rabbitmq:
container_name: codelytv-php_ddd_skeleton-rabbitmq
image: 'rabbitmq:3.7-management'
restart: unless-stopped
ports:
- 5630:5672
- 8090:15672
environment:
- RABBITMQ_DEFAULT_USER=codelytv
- RABBITMQ_DEFAULT_PASS=c0d3ly
nginx:
container_name: codelytv-ddd-skeleton-nginx
image: nginx:1.15-alpine
restart: unless-stopped
ports:
- "8030:80"
volumes:
- .:/app:delegated
- ./etc/infrastructure/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- php
php:
container_name: codelytv-php_ddd_skeleton-php
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "9090:9001"
volumes:
- .:/app:delegated
env_file:
- .env
- .env.local
depends_on:
- mysql
- rabbitmq