-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (76 loc) · 1.98 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
services:
cobuccio-postgres:
image: postgres:17.3-alpine3.21
container_name: cobuccio-postgres
restart: always
ports:
- $DB_PORT:5432
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- PGDATA=/var/lib/postgresql/data
- TZ=America/Sao_Paulo
volumes:
- ./.postgres-data:/var/lib/postgresql/data
- ./migrations:/migrations
- ./seeds:/seeds
networks:
- cobuccio-network
cobuccio-redis:
image: redis:7.4.2-alpine3.21
container_name: cobuccio-redis
restart: always
ports:
- $REDIS_PORT:6379
command: redis-server --requirepass ${REDIS_PASS}
networks:
- cobuccio-network
cobuccio-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.2
container_name: cobuccio-elasticsearch
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- xpack.monitoring.collection.enabled=true
- action.destructive_requires_name=true
- indices.breaker.request.limit=50%
- thread_pool.write.queue_size=1000
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- cobuccio_elasticsearch_data:/usr/share/elasticsearch/data
ports:
- $ELASTIC_PORT:9200
- "9300:9300"
networks:
- cobuccio-network
cobuccio-kibana:
image: docker.elastic.co/kibana/kibana:8.17.2
container_name: cobuccio-kibana
restart: always
depends_on:
- cobuccio-elasticsearch
environment:
- ELASTICSEARCH_HOSTS=http://cobuccio-elasticsearch:$ELASTIC_PORT
ports:
- $KIBANA_PORT:5601
networks:
- cobuccio-network
ulimits:
memlock:
soft: -1
hard: -1
volumes:
cobuccio_elasticsearch_data:
driver: local
cobuccio_kibana_data:
driver: local
networks:
cobuccio-network:
driver: bridge