-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
69 lines (61 loc) · 1.45 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
version: "3"
services:
mysql:
image: mysql:latest
container_name: streaming-app-mysql
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "streamingapp"
volumes:
- ./mysql/data/:/var/lib/mysql
networks:
- streaming-app-network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.4
container_name: streaming-app-elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data
networks:
- streaming-app-network
redis:
image: redis:latest
container_name: streaming-app-redis
networks:
- streaming-app-network
nodejs:
build: ./server
container_name: streaming-app-nodejs
volumes:
- ./server:/usr/src/app/server
- ./media:/usr/src/app/media
networks:
- streaming-app-network
depends_on:
- mysql
- elasticsearch
- redis
restart: always
nginx:
build: ./nginx
container_name: streaming-app-nginx
volumes:
- ./media/data:/usr/src/app/stream
ports:
- 8080:80
networks:
- streaming-app-network
depends_on:
- nodejs
scrapy:
build: ./scrapy
container_name: streaming-app-scrapy
volumes:
- ./scrapy:/usr/src/app
networks:
- streaming-app-network
networks:
streaming-app-network: