-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
81 lines (73 loc) · 1.76 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
networks:
local_network:
services:
php:
container_name: php
build:
context: ./containers/php
networks:
- local_network
volumes:
- ../:/www
- /www/docker
- ./etc/php/php.ini:/usr/local/etc/php/php.ini
- ./etc/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
nginx:
container_name: nginx
build:
context: ./containers/nginx
ports:
- 80:80
volumes:
- ../:/www
- /www/docker
- ./etc/nginx/conf.d:/etc/nginx/conf.d
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./log/nginx:/var/log/nginx
depends_on:
- php
- mysql
networks:
- local_network
mysql:
container_name: mysql
build:
context: ./containers/mysql
restart: unless-stopped
tty: true
volumes:
- ./data/mysql:/var/lib/mysql
- ./etc/mysql/my.cnf:/etc/mysql/my.cnf
- ./log/mysql:/var/log/mysql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: testy
MYSQL_USER: root
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
networks:
- local_network
memcached:
container_name: memcached
build:
context: ./containers/memcached
networks:
- local_network
ports:
- 11211:11211
elasticsearch:
container_name: elasticsearch
build:
context: ./containers/elasticsearch
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
- ./log/elasticsearch:/usr/share/elasticsearch/logs
- ./etc/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./etc/elasticsearch/jvm.options:/usr/share/elasticsearch/config/jvm.options
networks:
- local_network
ports:
- 9200:9200
- 9300:9300