-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (84 loc) · 2.17 KB
/
docker-compose.yml
File metadata and controls
90 lines (84 loc) · 2.17 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
87
88
89
services:
neo4j:
build: ./neo4j
volumes:
- ./volume/logs:/logs
- ./volume/config:/config
- ./volume/data:/data
- ./volume/plugins:/plugins
environment:
NEO4J_AUTH: ${NEO4J_USER}/${NEO4J_PASSWORD}
NEO4J_apoc_export_file_enabled: "true"
NEO4J_apoc_import_file_enabled: "true"
NEO4J_apoc_import_file_use__neo4j__config: "true"
NEO4J_dbms_security_procedures_unrestricted: "apoc.*"
ports:
- "7474:7474"
- "7687:7687"
restart: always
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u ${NEO4J_USER} -p '${NEO4J_PASSWORD}' 'RETURN 1' || exit 1"]
interval: 5s
timeout: 5s
retries: 5
start_period: 30s
opensearch:
image: opensearchproject/opensearch:2.13.0
container_name: opensearch
env_file:
- ./.env
environment:
- discovery.type=single-node
- plugins.security.disabled=true
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD}
volumes:
- opensearch-volume:/usr/share/opensearch/data
ports:
- "9200:9200"
dashboard:
image: opensearchproject/opensearch-dashboards:2.13.0
container_name: opensearch-dashboards
environment:
- OPENSEARCH_HOSTS=["http://opensearch:9200"]
- DISABLE_SECURITY_DASHBOARDS_PLUGIN=true
ports:
- "5601:5601"
depends_on:
- opensearch
fastapi:
build:
context: .
dockerfile: src/Dockerfile
container_name: fastapi-app
env_file:
- ./.env
ports:
- "${BACKEND_PORT}:8765"
depends_on:
neo4j:
condition: service_healthy
opensearch:
condition: service_started
volumes:
- fastapi-volume:/app/logs
environment:
NEO4J_URI: neo4j
OPENSEARCH_URI: opensearch
NEO4J_USER: ${NEO4J_USER}
NEO4J_PASSWORD: ${NEO4J_PASSWORD}
OPENSEARCH_INDEX: ${OPENSEARCH_INDEX}
BACKEND_URI: 0.0.0.0
BACKEND_PORT: 8765
volumes:
opensearch-volume:
driver: local
driver_opts:
o: bind
type: none
device: ./volume/opensearch
fastapi-volume:
driver: local
driver_opts:
o: bind
type: none
device: ./volume/app-logs