-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (71 loc) · 2.53 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
version: '3.4'
services:
mysql:
image: mysql:8
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- "3357:3306"
environment:
MYSQL_ROOT_PASSWORD: "T0pS3cr3t1234!"
MYSQL_PASSWORD: "T0pS3cr3t1234!"
MYSQL_USER: sa
MYSQL_DATABASE: contentbox
volumes:
# Mounts the database files
- ./config/mysql:/var/lib/mysql
# Seeds the database
- ./config/dbinit:/docker-entrypoint-initdb.d
app:
image: ortussolutions/commandbox:lucee5
depends_on:
- mysql
environment:
#################################################################
# App Name and Environment
#################################################################
APPNAME: ContentBox Headless CMS
# This can be development, staging, production or custom.
ENVIRONMENT: development
# The password for the CFML Engine Administrator
CFCONFIG_ADMINPASSWORD: contentbox
# The ColdBox Reinit password
COLDBOX_REINITPASSWORD:
# How long do admin sessions last (In Minutes)
COLDBOX_SESSION_TIMEOUT: 60
# Development CBDebugger
CBDEBUGGER_ENABLED: false
# JWT Secret
JWT_SECRET: l5cjHgeCk11jpPCZKjdovA==
#################################################################
# ContentBox ORM Settings
# --------------------------------
# This is used to configure the ORM via env settings usually for
# different RDBMS settings or options
#################################################################
ORM_DIALECT: MySQL
# Log sql to the console or not
ORM_LOGSQL: true
# Sql Script to execute after ORM is initialized
ORM_SQL_SCRIPT:
# Activate secondary cache or disable it
ORM_SECONDARY_CACHE: false
ORM_SECONDARY_CACHE_PROVIDER: ehcache
######################################################
# MySQL 8 DB Driver
######################################################
DB_CLASS: com.mysql.cj.jdbc.Driver
DB_DRIVER: MySQL
DB_BUNDLEVERSION: 8.0.24
DB_BUNDLENAME: com.mysql.cj
# DB Location
DB_HOST: mysql
DB_PORT: 3306
DB_CONNECTIONSTRING: jdbc:mysql://mysql:3306/contentbox?allowPublicKeyRetrieval=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useLegacyDatetimeCode=true
# DB Credentials
DB_DATABASE: contentbox
DB_USER: sa
DB_PASSWORD: T0pS3cr3t1234!
ports:
- "61670:8080"
volumes:
- .:/app:delegated