-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
57 lines (52 loc) · 1.4 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
version: "3.2"
services:
tinchat:
# You don't have to create the image manually if you provide the build which builds the image from the Dockerfile.
build:
context: .
dockerfile: Dockerfile
image: tanvirtin/tinchat
container_name: tinchat
restart: unless-stopped
env_file: .env
# Exposing two ports one for REST api (8000) and the other for socket connection (8001).
ports:
- 8000:8000
- 8001:8001
# Command the run after the container has been created.
command: yarn start
db:
image: postgres
restart: unless-stopped
container_name: postgres
volumes:
- pgdata:/var/lib/postgresql/data
- pgconf:/etc/postgresql
- pglog:/var/log/postgresql
ports:
- "5432:5432"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.2
restart: unless-stopped
container_name: elasticsearch
environment:
- node.name=elasticsearch
- cluster.name=docker-cluster
- cluster.initial_master_nodes=elasticsearch
- "ES_JAVA_OPTS=-Xms256M -Xmx256M"
- http.cors.enabled=true
- http.cors.allow-origin=*
- network.host=_eth0_
ulimits:
nofile:
soft: 65536
hard: 65536
ports:
- 9200:9200
volumes:
pgdata:
driver: local
pgconf:
driver: local
pglog:
driver: local