-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
105 lines (103 loc) · 2.3 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3'
services:
backendnginx:
image: nginx
ports:
- '80:80'
volumes:
- '/var/log/nginx:/var/log/nginx'
- './nginx/nginx.conf:/etc/nginx/nginx.conf'
depends_on:
- backend
backend:
build: ./backend/
tty: true
volumes:
- './backend/:/usr/src/app/'
ports:
- '8080:8080'
environment:
- 'DEBUG=express:*'
- NODE_ENV=development
depends_on:
- mongo
- redis
socketioproxy:
image: nginx
ports:
- '8000:80'
volumes:
- './nginx/socket.io/nginx.conf:/etc/nginx/nginx.conf'
depends_on:
- websocket
websocket:
build: ./websocket/
tty: true
volumes:
- './websocket/:/usr/src/app/'
depends_on:
- redis
client:
build: ./client/
tty: true
volumes:
- './client/:/usr/src/app/'
ports:
- '3000:3000'
depends_on:
- socketioproxy
- backendnginx
game:
build: ./game/
tty: true
volumes:
- './game/:/usr/src/app/'
mongo:
image: mongo
mongograylog:
image: mongo
redis:
image: redis
tty: true
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
#- node.max_local_storage_nodes=4
ports:
- 9200:9200
ulimits:
memlock:
soft: -1
hard: -1
deploy:
resources:
limits:
memory: 1g
# Graylog: https://hub.docker.com/r/graylog/graylog/
graylog:
image: graylog/graylog:4.2
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
# Password: admin
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
restart: always
depends_on:
- mongograylog
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 1514:1514
# Syslog UDP
- 1514:1514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp