-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.4 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
63
64
65
version: '3.8'
name: events-scheduler-api
services:
nginx:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./logs/nginx:/var/log/nginx
depends_on:
- api-php
api-php:
build:
context: .
volumes:
# - ./:/var/www/html
- ./app:/var/www/html/app
- ./public:/var/www/html/public
- ./messaging:/var/www/html/messaging
- ./logger:/var/www/html/logger
- ./composer.json:/var/www/html/composer.json
- .env:/var/www/html/.env
depends_on:
- db
- rabbitmq
- elasticsearch
db:
image: postgres:latest
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: postgres
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- db_data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3-management-alpine
ports:
- "15672:15672" # RabbitMQ Web Panel
volumes:
- rabbitmq_data:/var/lib/rabbitmq
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
environment:
- discovery.type=single-node
volumes:
- es_data:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.16.3
ports:
- "5601:5601" # Kibana web interface
depends_on:
- elasticsearch
volumes:
rabbitmq_data:
db_data:
es_data: