-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 2.18 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
################################################################################
# ColdBox Docker Compose Stack
# This can be used to quickly run your ColdBox application in a CommandBox based Docker Container.
#
# We pull the latest image, you can change this to a specific tag or CFML engine, which we recommend.
# https://hub.docker.com/repository/docker/ortussolutions/commandbox
#
# Database
# - We give you three databases for you to choose from below: MySQL 8, PostgreSQL, Azure MSSQL
################################################################################
version: "3.9"
services:
## PostgreSQL
# coldbox_db:
# image: postgres:12
# environment:
# POSTGRES_PASSWORD: "coldbox"
# POSTGRES_USER: "coldbox"
# POSTGRES_DB: "coldbox"
# ports:
# - 5432:5432
# volumes:
# - .db/postgres/initdb:/docker-entrypoint-initdb.d
# - .db/postgres/data:/var/lib/postgresql/data
# mssql:
# image: mcr.microsoft.com/azure-sql-edge:latest
# ports:
# - "1434:1433"
# environment:
# SA_PASSWORD: "T35t1ng1234!"
# ACCEPT_EULA: "Y"
# volumes:
# - .db/mssql/tmp:/tmp/mssql
# MySQL Server 8
coldbox_db:
image: mysql:8
ports:
- "4306:3306"
environment:
MYSQL_DATABASE: "coldbox"
MYSQL_ROOT_PASSWORD: "coldbox"
volumes:
# Store the data locally
- .db/mysql8/data:/var/lib/mysql
# You can uncomment and it will seed the db with our prepared sql data
#- ../resources/sql/mysql:/docker-entrypoint-initdb.d
# ColdBox Site
coldbox_app:
depends_on:
- coldbox_db
image: ortussolutions/commandbox:boxlang
# Environment Variables
environment:
CFCONFIG_ADMINPASSWORD: coldbox
ENVIRONMENT: DEVELOPMENT
# JWT_SECRET: mySecret
DB_HOST: coldbox_db
DB_PORT: 4306
DB_DATABASE: coldbox
DB_DRIVER: MySQL
DB_USER: root
DB_PASSWORD: coldbox
DB_CONNECTIONSTRING: jdbc:mysql://127.0.0.1:3306/coldbox?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useLegacyDatetimeCode=true
# Ports
ports:
- "8080:8080"
- "8443:8443"
# Data & Overrides
volumes:
- ../:/app