-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
61 lines (57 loc) · 1.61 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
version: "3"
services:
# Database
db:
image: mysql:5.7
container_name: "cb_database"
environment:
MYSQL_ROOT_PASSWORD: contentbox
MYSQL_DATABASE: contentbox
MYSQL_USER: contentbox
MYSQL_PASSWORD: contentbox
ports:
- "3307:3306"
volumes:
- ./build/docker/mysql:/var/lib/mysql
# Distributed Cache
cache:
image: redis
container_name: "cb_cache"
ports:
- "6379"
volumes:
- ./build/docker/redis:/data
# ContentBox Site
contentbox:
depends_on:
- db
- cache
image: ortussolutions/contentbox
container_name: "cb_site"
# Environment Variables
environment:
cfconfig_adminPassword: contentbox
BOX_INSTALL: "true"
INSTALL: "true"
# Database Connection
DB_CONNECTION_STRING: "jdbc:mysql://database:3306/contentbox?useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=true"
DB_CLASS: "com.mysql.jdbc.Driver"
DB_USER: "contentbox"
DB_PASSWORD: "contentbox"
# Ports
ports:
- "8080:8080"
# Data & Overrides
volumes:
# Persist HSQL Database
#- ./build/docker/contentbox-db:/data/contentbox/db
# Persist Media Manager
- ./build/docker/contentbox-content:/app/includes/shared/media
# Overrides for Distributed Caching, make sure you use a centralized DB instead of HSQL
- ./box.json:/app/box.json
- ./config/CacheBox.cfc:/app/config/CacheBox.cfc
- ./config/Coldbox.cfc:/app/config/Coldbox.cfc
#- ./modules_app:/app/modules_app
links:
- cache:distributed-cache
- db:database