-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (85 loc) · 1.93 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
89
90
91
92
version: '3'
services:
postgres:
image: postgres:13.3
container_name: postgres
environment:
POSTGRES_DB: bibliophiliadb
POSTGRES_USER: bibliophilia
POSTGRES_PASSWORD: bibliophilia
volumes:
- db_volume:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- bibliopilia_network
elasticsearch:
image: elasticsearch:${STACK_VERSION}
container_name: elasticsearch
volumes:
- es_volume:/usr/share/elasticsearch/data
ports:
- "${ES_PORT}:9200"
environment:
- node.name=elasticsearch
- cluster.name=${CLUSTER_NAME}
- discovery.type=single-node
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- bootstrap.memory_lock=true
- xpack.security.enabled=false
env_file:
- .env
networks:
- bibliopilia_network
kibana:
image: kibana:${STACK_VERSION}
container_name: kibana
depends_on:
- elasticsearch
ports:
- "${KIBANA_PORT}:5601"
environment:
- SERVERNAME=kibana
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=kibana_system
- ELASTICSEARCH_PASSWORD=${KIBANA_PASSWORD}
env_file:
- .env
networks:
- bibliopilia_network
backend:
build:
context: backend
container_name: backend
volumes:
- images_volume:/app/public/images
- files_volume:/app/private/files
depends_on:
- postgres
- elasticsearch
environment:
- ELASTICSEARCH_HOST=elasticsearch
- ELASTICSEARCH_PORT=9200
ports:
- "8000:8000"
networks:
- bibliopilia_network
frontend:
build:
context: ./frontend
container_name: frontend
volumes:
- images_volume:/app/public/images
depends_on:
- backend
ports:
- "3000:3000"
networks:
- bibliopilia_network
networks:
bibliopilia_network:
volumes:
es_volume:
db_volume:
images_volume:
files_volume: