-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose.yml
118 lines (111 loc) · 4.22 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3"
services:
alfresco:
build: ./alfresco
depends_on:
- db
environment:
JAVA_OPTS : '
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbc:postgresql://db:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Ddeployment.method=DOCKER_COMPOSE
-Dcsrf.filter.enabled=false
-XX:+UseG1GC -XX:+UseStringDeduplication
-Xmx${ALFRESCO_XMX} -Xms${ALFRESCO_XMS}
'
volumes:
- ./volumes/data/alf-repo-data:/usr/local/tomcat/alf_data
- ./volumes/logs/alfresco:/usr/local/tomcat/logs
- ./volumes/config/alfresco-global.properties:/usr/local/tomcat/shared/classes/alfresco-global.properties
networks:
- internal
share:
build: ./share
depends_on:
- alfresco
environment:
- REPO_HOST=alfresco
- REPO_PORT=8080
- "CATALINA_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -Xms${SHARE_XMS} -Xmx${SHARE_XMX}"
volumes:
- ./volumes/logs/share:/usr/local/tomcat/logs
- ./volumes/config/ext-share-config-custom.xml:/usr/local/tomcat/shared/classes/alfresco/web-extension/ext-share-config-custom.xml
networks:
- internal
solr6:
image: alfresco/alfresco-search-services:1.2.0
depends_on:
- alfresco
environment:
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=8080
- SOLR_SOLR_HOST=solr6
- SOLR_SOLR_PORT=8983
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
- SOLR_JAVA_MEM=-Xms${SOLR_XMS} -Xmx${SOLR_XMX}
# Set permissions for user with uid 1000 ('isadm' in host, 'solr' in container)
volumes:
- ./volumes/data/solr-data:/opt/alfresco-search-services/data
# Logs directory cannot be exposed as volume as it includes also configuration inside (log4j.properties)
networks:
- internal
content-app:
image: alfresco/alfresco-content-app:master-latest
depends_on:
- alfresco
environment:
- BASEPATH=aca
networks:
- internal
db:
image: postgres:10
environment:
- POSTGRES_USER=alfresco
- POSTGRES_PASSWORD=alfresco
- POSTGRES_DB=alfresco
command: "
postgres
-c max_connections=${PG_MAX_CONNECTIONS}
-c shared_buffers=${PG_SHARED_BUFFERS}
-c effective_cache_size=${PG_EFFECTIVE_CACHE_SIZE}
-c maintenance_work_mem=${PG_MAINTENANCE_WORK_MEM}
-c checkpoint_completion_target=${PG_CHECKPOINT_COMPLETION_TARGET}
-c wal_buffers=${PG_WAL_BUFFERS}
-c default_statistics_target=${PG_DEFAULT_STATISTICS_TARGET}
-c random_page_cost=${PG_RANDOM_PAGE_COST}
-c effective_io_concurrency=${PG_EFFECTIVE_IO_CONCURRENCY}
-c work_mem=${PG_WORK_MEM}
-c min_wal_size=${PG_MIN_WAL_SIZE}
-c max_wal_size=${PG_MAX_WAL_SIZE}
-c max_worker_processes=${PG_MAX_WORKER_PROCESSES}
-c max_parallel_workers_per_gather=${PG_MAX_PARALLEL_WORKERS_PER_GATHER}
-c max_parallel_workers=${PG_MAX_PARALLEL_WORKERS}
-c logging_collector=on
-c log_min_messages=LOG
-c log_directory=/var/log/postgresql"
volumes:
- ./volumes/data/postgres-data:/var/lib/postgresql/data
- ./volumes/logs/postgres:/var/log/postgresql
networks:
- internal
proxy:
image: nginx:stable-alpine
depends_on:
- content-app
- share
volumes:
- ./volumes/config:/etc/nginx/conf.d
- ./volumes/logs/nginx:/var/log/nginx
networks:
- internal
ports:
- 80:80
networks:
internal: