-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
88 lines (81 loc) · 2.41 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
85
86
87
88
version: "3"
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.6.2"
healthcheck:
test: curl -s http://localhost:9200/ >/dev/null || exit 1 # interval: 3s"]
interval: 3s
timeout: 3s
retries: 80
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
- "xpack.security.enabled= false"
ports:
- "9200:9200"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
networks:
- backend
kibana:
image: "docker.elastic.co/kibana/kibana:8.6.2"
ports:
- "5601:5601"
environment:
- "ELASTICSEARCH_HOSTS=http://elasticsearch:9200"
networks:
- backend
filebeat:
image: "docker.elastic.co/beats/filebeat:8.6.2"
user: root
volumes:
- ./filebeats_config/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
command: filebeat -e -strict.perms=false
networks:
- backend
vector:
image: "timberio/vector:0.29.1-debian"
user: root
volumes:
- ./vector_config/vector.toml:/etc/vector/vector.toml:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
- backend
golang:
image: "softeng/movie-suggestions-api:latest"
build:
dockerfile: Dockerfile
context: .
depends_on:
elasticsearch:
condition: service_healthy
ports:
- "3000:8080"
env_file:
- dev.env
# environment:
# - APP_NAME=IMDB-Rating
# - PORT=8080
# - ATLAS_URI=mongodb://user:pass@mongolocal:27017/?authMechanism=SCRAM-SHA-256
networks:
- backend
mongodb:
hostname: "mongolocal"
container_name: "mongolocal"
image: mongo:latest
environment:
- MONGO_INITDB_ROOT_USERNAME=user
- MONGO_INITDB_ROOT_PASSWORD=pass
volumes:
- ./mongodb_data:/data/db
ports:
- 27018:27017
networks:
- backend
networks:
backend:
volumes:
elasticsearch_data: