Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

docker-compose.yml 2.3 KB

You have to be logged in to leave a comment. Sign In
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
  1. ################################################################################
  2. # ColdBox Docker Compose Stack
  3. # This can be used to quickly run your ColdBox application in a CommandBox based Docker Container.
  4. #
  5. # We pull the latest image, you can change this to a specific tag or CFML engine, which we recommend.
  6. # https://hub.docker.com/repository/docker/ortussolutions/commandbox
  7. #
  8. # Database
  9. # - We give you three databases for you to choose from below: MySQL 8, PostgreSQL, Azure MSSQL
  10. ################################################################################
  11. version: "3.9"
  12. services:
  13. ## PostgreSQL
  14. # coldbox_db:
  15. # image: postgres:12
  16. # environment:
  17. # POSTGRES_PASSWORD: "coldbox"
  18. # POSTGRES_USER: "coldbox"
  19. # POSTGRES_DB: "coldbox"
  20. # ports:
  21. # - 5432:5432
  22. # volumes:
  23. # - .db/postgres/initdb:/docker-entrypoint-initdb.d
  24. # - .db/postgres/data:/var/lib/postgresql/data
  25. # mssql:
  26. # image: mcr.microsoft.com/azure-sql-edge:latest
  27. # ports:
  28. # - "1434:1433"
  29. # environment:
  30. # SA_PASSWORD: "T35t1ng1234!"
  31. # ACCEPT_EULA: "Y"
  32. # volumes:
  33. # - .db/mssql/tmp:/tmp/mssql
  34. # MySQL Server 8
  35. coldbox_db:
  36. image: mysql:8
  37. ports:
  38. - "4306:3306"
  39. environment:
  40. MYSQL_DATABASE: "coldbox"
  41. MYSQL_ROOT_PASSWORD: "coldbox"
  42. volumes:
  43. # Store the data locally
  44. - .db/mysql8/data:/var/lib/mysql
  45. # You can uncomment and it will seed the db with our prepared sql data
  46. #- ../resources/sql/mysql:/docker-entrypoint-initdb.d
  47. # ColdBox Site
  48. coldbox_app:
  49. depends_on:
  50. - coldbox_db
  51. image: ortussolutions/commandbox:lucee5
  52. # Environment Variables
  53. environment:
  54. CFCONFIG_ADMINPASSWORD: coldbox
  55. ENVIRONMENT: DEVELOPMENT
  56. # JWT_SECRET: mySecret
  57. DB_HOST: coldbox_db
  58. DB_PORT: 4306
  59. DB_DATABASE: coldbox
  60. DB_DRIVER: MySQL
  61. DB_USER: root
  62. DB_PASSWORD: coldbox
  63. DB_CLASS: com.mysql.jdbc.Driver
  64. DB_BUNDLEVERSION: 8.0.19
  65. DB_BUNDLENAME: com.mysql.cj
  66. DB_CONNECTIONSTRING: jdbc:mysql://127.0.0.1:3306/coldbox?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useLegacyDatetimeCode=true
  67. # Ports
  68. ports:
  69. - "8080:8080"
  70. - "8443:8443"
  71. # Data & Overrides
  72. volumes:
  73. - ../:/app
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...