generated from moevm/nsql-clean-tempate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 973 Bytes
/
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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- '127.0.0.1:8080:8080'
depends_on:
db:
condition: service_healthy
environment:
SPRING_APPLICATION_NAME: lake-catalog
SPRING_NEO4J_URI: ${SPRING_NEO4J_URI}
SPRING_NEO4J_AUTHENTICATION_USERNAME: ${SPRING_NEO4J_AUTHENTICATION_USERNAME}
SPRING_NEO4J_AUTHENTICATION_PASSWORD: ${SPRING_NEO4J_AUTHENTICATION_PASSWORD}
volumes:
- app_data:/app/data
networks:
- app-network
db:
build:
context: ./db
dockerfile: Dockerfile
environment:
NEO4J_AUTH: neo4j/neo4jneo4j
volumes:
- db_data:/data
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p neo4jneo4j 'RETURN 1' || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- app-network
volumes:
db_data:
app_data:
networks:
app-network:
driver: bridge