-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
86 lines (79 loc) · 1.93 KB
/
docker-compose-dev.yml
File metadata and controls
86 lines (79 loc) · 1.93 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.3'
networks:
elk:
main:
name: mini-x-network
services:
postgres:
image: postgres:latest
container_name: pg_db
environment:
POSTGRES_DB: mini-x
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- ./src/schema.sql:/docker-entrypoint-initdb.d/psql_dump.sql
ports:
- "5432:5432"
networks:
- main
app:
build:
context: .
shm_size: '128m'
container_name: mini-x
networks:
- main
ports:
- "5000:5000"
- "5001:5001"
environment:
- DATABASE_URL=postgresql://postgres:postgres@pg_db:5432/mini-x
depends_on:
- postgres
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.6.2"
container_name: es
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
- "xpack.security.enabled=false"
volumes:
- elk_elasticsearch_data:/usr/share/elasticsearch/data
networks:
- elk
ports:
- 9200:9200
kibana:
image: "docker.elastic.co/kibana/kibana:8.6.2"
container_name: kibana
environment:
- "elasticsearch.hosts='[\"http://elasticsearch:9200\"]'"
- "xpack.security.enabled=false"
networks:
- elk
volumes:
- kibanadata:/usr/share/kibana/data
ports:
- 5601:5601
filebeat:
image: "docker.elastic.co/beats/filebeat:8.6.2"
container_name: filebeat
environment:
- "ELK_USER=filebeat-dev"
- "ES_URL=elasticsearch:9200"
- "ES_PROTOCOL=http"
- "ES_USERNAME=elastic"
- "ES_PASSWORD=elastic"
user: root
volumes:
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
- elk
volumes:
postgres_data:
elk_elasticsearch_data:
kibanadata: