-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.29 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
53
54
55
56
57
58
59
60
61
62
version: '3'
services:
micro_email_php:
container_name: micro_email_php
build: ./docker/php
volumes:
- ./:/app
ports:
- '9000:9000'
depends_on:
micro_email_rabbitmq:
condition: service_healthy
command: sh -c "composer install --ignore-platform-reqs && php src/run.php"
micro_email_nginx:
image: nginx:alpine
container_name: micro_email_nginx
volumes:
- ./:/app
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
ports:
- '8080:80'
links:
- micro_email_php
micro_email_rabbitmq:
image: "rabbitmq:3-management"
container_name: micro_email_rabbitmq
hostname: "rabbit"
ports:
- "15672:15672"
- "5672:5672"
labels:
NAME: "rabbitmq"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
volumes:
- ./rabbitmq-isolated.conf:/etc/rabbitmq/rabbitmq.config
micro_email_flask:
build: ./flask
container_name: micro_email_flask
links:
- micro_email_db
- micro_email_rabbitmq
ports:
- "5000:5000"
micro_email_db:
image: mysql:5.7
container_name: micro_email_db
ports:
- "32000:3306"
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./db:/docker-entrypoint-initdb.d/:ro