forked from CodelyTV/php-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·49 lines (45 loc) · 1002 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
41
42
43
44
45
46
47
48
49
version: '3'
services:
nginx:
container_name: codelytv-cqrs_ddd_php_example-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-cqrs_ddd_php_example-php
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "9030:9001"
volumes:
- .:/app:delegated
env_file:
- .env
depends_on:
- mysql
- rabbitmq
mysql:
container_name: codelytv-cqrs_ddd_php_example-mysql
image: mariadb:10.4
restart: unless-stopped
ports:
- "3330:3306"
env_file:
- .env
rabbitmq:
container_name: codelytv-cqrs_ddd_php_example-rabbitmq
image: 'rabbitmq:3.7-management'
restart: unless-stopped
ports:
- 5630:5672
- 15630:15672
env_file:
- .env