-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yaml
62 lines (56 loc) · 1.26 KB
/
docker-compose.dev.yaml
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
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- db
- redis
- search
environment:
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/database'
- 'SPRING_DATASOURCE_USERNAME=user'
- 'SPRING_DATASOURCE_PASSWORD=password'
- 'SPRING_JPA_HIBERNATE_DDL_AUTO=update'
- 'REDIS_HOST=redis'
- 'REDIS_PORT=6379'
db:
image: 'postgres:latest'
environment:
- 'POSTGRES_DB=database'
- 'POSTGRES_PASSWORD=password'
- 'POSTGRES_USER=user'
- 'PGPORT=5432'
ports:
- '5432:5432'
redis:
image: 'redis:latest'
container_name: redis
hostname: redis
ports:
- '6379:6379'
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
search:
image: elasticsearch:8.12.2
logging:
driver: "json-file"
options:
max-size: "1000m"
max-file: "10"
environment:
- 'discovery.type=single-node'
- 'xpack.security.enabled=false'
ports:
- "9200:9200"
- "9600:9600"
kibana:
image: kibana:8.12.2
ports:
- "5601:5601"
environment:
- 'ELASTICSEARCH_URL=http://search:9200'
- 'ELASTICSEARCH_HOSTS=http://search:9200'