-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 964 Bytes
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
version: "3.8"
services:
db:
image: postgres:14
restart: always
env_file: .env
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
command: "postgres -c max_connections=200"
networks:
- global
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.4
restart: always
container_name: elasticsearch
ports:
- "9200:9200"
env_file: .env
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx2048m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- global
app:
build: .
restart: always
ports:
- "3000:3000"
volumes:
- .:/app
env_file: .env
depends_on:
- db
- elasticsearch
networks:
- global
volumes:
pgdata:
esdata:
networks:
global: