-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
60 lines (55 loc) · 1.26 KB
/
compose.yaml
File metadata and controls
60 lines (55 loc) · 1.26 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
name: gopen
services:
api:
build:
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NEO4J_URI: bolt://db:7687
NEO4J_USERNAME: neo4j
NEO4J_PASSWORD: testpassword
depends_on:
db:
condition: service_healthy
secrets:
- jwt_sign
db:
image: neo4j:community-trixie
ports:
- "7687:7687"
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p testpassword --access-mode=read \"RETURN 0\""]
interval: 5s
timeout: 1m
retries: 5
start_period: 15s
environment:
NEO4J_AUTH: neo4j/testpassword
volumes:
- db-data:/data
db-fill:
image: neo4j:community-trixie
volumes:
- ./migrations:/migrations
command: cypher-shell -a bolt://db:7687 -u neo4j -p testpassword -f /migrations/test_docs.cypher
depends_on:
db:
condition: service_healthy
profiles:
- tools
db-setup:
image: neo4j:community-trixie
volumes:
- ./migrations:/migrations
command: cypher-shell -a bolt://db:7687 -u neo4j -p testpassword -f /migrations/setup.cypher
depends_on:
db:
condition: service_healthy
profiles:
- tools
secrets:
jwt_sign:
file: .secrets/jwt_sign
volumes:
db-data: