-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (45 loc) · 921 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
50
51
version: '3'
services:
nginx:
build: nginx
container_name: proxy
depends_on:
- db
ports:
- "8080:80"
networks:
- news_network
app:
build: app
container_name: app
depends_on:
- db
- elasticsearch
expose:
- "8080"
networks:
- news_network
db:
image: "mysql:5.7"
container_name: db
environment:
- MYSQL_ROOT_PASSWORD=root_pwd
- MYSQL_DATABASE=db_news
- MYSQL_USER=dlmbg
- MYSQL_PASSWORD=123456
volumes:
- ./db/dump.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- news_network
elasticsearch:
container_name: 'elasticsearch'
image: 'docker.elastic.co/elasticsearch/elasticsearch:6.2.3'
ports:
- '9200:9200'
networks:
- news_network
networks:
news_network:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"