-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (93 loc) · 2.89 KB
/
docker-compose.yml
File metadata and controls
108 lines (93 loc) · 2.89 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.3'
services:
neo4j:
image: neo4j:latest
container_name: structr-neo4j
restart: unless-stopped
environment:
- NEO4J_AUTH=neo4j/structrDockerSetup
- NEO4J_server_memory_heap_initial__size=1G
- NEO4J_server_memory_heap_max__size=2G
- NEO4J_server_memory_pagecache_size=1G
# Uncomment to access Neo4j browser and Bolt from host
# ports:
# - "7474:7474" # HTTP
# - "7473:7473" # HTTPS
# - "7687:7687" # Bolt
deploy:
resources:
limits:
cpus: '2'
memory: 4g
reservations:
cpus: '1'
memory: 1g
# Add volumes for data retention
volumes:
# folders
- neo4j-database:/data
- neo4j-logs:/logs
# Put service networks so Structr and Neo4j can communicate
networks:
structr-network:
aliases:
- neo4j
structr:
image: structr/structr:6.0.0
container_name: structr-app
restart: unless-stopped
depends_on:
- neo4j
ports:
- "8082:8082"
environment:
# JVM Memory Settings and timezone
- STRUCTR_application_memory_min__heap=1g
- STRUCTR_application_memory_max__heap=4g
- STRUCTR_application_timezone=UTC
# Privacy Policy Agreement
- AGREE_TO_STRUCTR_PRIVACY_POLICY=no
# Superuser Configuration
- STRUCTR_superuser_password=superuser
# Neo4j Connection Configuration
- STRUCTR_database_available_connections=neo4j_default
- STRUCTR_neo4j__default_database_driver=org.structr.bolt.BoltDatabaseService
- STRUCTR_neo4j__default_database_connection_name=neo4j_default
- STRUCTR_neo4j__default_database_connection_url=bolt://neo4j:7687
- STRUCTR_neo4j__default_database_connection_username=neo4j
- STRUCTR_neo4j__default_database_connection_password=structrDockerSetup
- STRUCTR_nodeservice_active=neo4j_default
# Schema Configuration
- STRUCTR_application_schema_automigration=true
# Deployment Configuration (for repository directory mount)
- STRUCTR_deploymentservlet_filegroup_name=structr
- STRUCTR_deploymentservlet_filegroup_id=8082
deploy:
resources:
limits:
cpus: '2'
memory: 4g
reservations:
cpus: '1'
memory: 1g
volumes:
- structr-files:/var/lib/structr/files
- structr-repository:/var/lib/structr/repository
- structr-logs:/var/lib/structr/logs
- ./structr/license.key:/var/lib/structr/license.key
# Put service into network so Structr and Neo4j can communicate
networks:
structr-network:
volumes:
neo4j-database:
name: structr-neo4j-database
neo4j-logs:
name: structr-neo4j-logs
structr-files:
name: structr-files
structr-repository:
name: structr-repository
structr-logs:
name: structr-logs
networks:
structr-network: