-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.25 KB
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
services:
siem:
build:
context: .
dockerfile: Dockerfile
restart: always
env_file:
- .env
ports:
- "3000:3000"
command: sh -c "
until nc -z postgres 5432; do sleep 1; done &&
bunx prisma db push &&
bun start"
depends_on:
- elasticsearch
- postgres
- redis
dns:
- 8.8.8.8
- 8.8.4.4
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.2
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ports:
- "9200:9200"
- "9300:9300"
volumes:
- esdata:/usr/share/elasticsearch/data
deploy:
resources:
limits:
memory: 1024M
cpus: '0.50'
postgres:
image: postgres:15-alpine
container_name: postgres
restart: always
ports:
- 5435:5432
environment:
- POSTGRES_USER=myuser
- POSTGRES_PASSWORD=mypassword
env_file:
- .env
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: redis
ports:
- "6379:6379"
restart: always
volumes:
esdata:
driver: local
kdata:
driver: local
postgres:
driver: local