-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (45 loc) · 1.18 KB
/
docker-compose.yaml
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
version: '3.4'
services:
php:
build:
context: .
target: app-php_dev
env_file:
- .env
depends_on:
- postgres
- elasticsearch
volumes:
- ./:/var/www/html
- ~/.composer/cache:/root/.composer/cache
nginx:
image: nginx:1-alpine
env_file:
- .env
depends_on:
- php
volumes:
- ./public:/var/www/html/public:ro
- ./var/nginx:/var/log/nginx
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
postgres:
image: postgres:12-alpine
env_file:
- .env
volumes:
- postgres-volume:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.6
environment:
- 'cluster.name=botilka'
- 'discovery.type=single-node'
volumes:
- elasticsearch-volume:/usr/share/elasticsearch/data
mongodb:
image: mongo:4
volumes:
- mongodb-volume:/data/db
volumes:
postgres-volume:
elasticsearch-volume:
mongodb-volume: