-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
94 lines (82 loc) · 2.55 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
93
94
version: '3.3'
services:
neo4j:
image: neo4j:latest
# Structr versions < 4.0 can't change the initial neo4j password, so it has to be
# set in the environment of the docker container. The password here has to be the
# same as in the structr.conf file (default-migrated.database.connection.password).
environment:
- NEO4J_AUTH=neo4j/structrDockerSetup
# Uncomment to give host access to the service container
# ports:
# - "7474:7474"
# - "7473:7473"
# - "7687:7687"
# For swarm mode deployment only.
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:
database:
aliases:
- neo4j
structr:
image: structr/structr:5.2.0
depends_on:
- neo4j
ports:
- "8082:8082"
environment:
- STRUCTR_MIN_HEAP=1g
- STRUCTR_MAX_HEAP=4g
- AGREE_TO_STRUCTR_PRIVACY_POLICY=yes
- STRUCTR_superuser_password=superuser
- 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
- STRUCTR_application_schema_automigration=true
# Add file system group for repository directory mount
- STRUCTR_deploymentservlet_filegroup_name=structr
- STRUCTR_deploymentservlet_filegroup_id=8082
# For swarm mode deployment only.
deploy:
resources:
limits:
cpus: '2'
memory: 4g
reservations:
cpus: '1'
memory: 1g
# Add volumes for data retention
volumes:
# folders
- 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:
database:
volumes:
structr-files:
structr-repository:
structr-logs:
neo4j-database:
neo4j-logs:
networks:
database: