Comments (2)
When using the image's docker
config, if the APP_KEY
is not defined in your .env, it will fall back to the generic key set in config/docker/app.php. This is to facilitate a quick testing environment for developers without forcing them to configure settings.
More about the App Environment
I typically maintain a separate docker-compose for each environment (local, stage, prod) within the project repo. I store secrets in .env
that's not committed. Keep in mind, docker-compose supports .env variables as well.
In practice, the best approach really depends on the project and to an extent, your preference.
If you're planning to deploy via swarm or kubernetes, it's a good idea to extend the image so you're not dependent on volume mounts which may include baking in your own config.
from docker-octobercms.
sorry, I am a little bit confused here. looks there are 3 ways:
-
.env file can handle the cms environment variables, eg. we just make 2 .env files, one for dev environment, and another is for live environment. by using different docker-compose-dev, docker-compose-prod, to mirror the different file into the volume..
-
The docker-compose also provide the environment variables. which can be just defined in env_files setting config.
-
in some cloud service, there might be kubernetes which also provide the environment variables for the services. That mean we just take care of local dev env variables?
so, OMG, which way is the best approach?
from docker-octobercms.
Related Issues (20)
- Revisit composer install triggered by `INIT_PLUGINS` env var HOT 5
- PHP 7.4 support HOT 1
- how to set PHP max_execution_time ? HOT 2
- Add kubernetes charts
- Update README with ssl notes HOT 2
- Problem writing to the storage directory HOT 4
- Build 465 images are not accessible HOT 1
- cron runs with different env variables HOT 4
- Theme volume assets not found in browser
- Xdebug error HOT 1
- Installing Plugin Dependencies on `docker-compose up` HOT 1
- Trying to user PHP 7.4-apache Dockerfile : Composer Error HOT 4
- [Feature Request] Upgrade to Octobercms v1.1 HOT 2
- Enable Supervisor? HOT 1
- Bad protocol version. Please update to a newer version of October CMS (Build >472 or >v1.1.5) and try again. HOT 2
- How to enable more PHP Extensions? HOT 1
- Support for OctoberCMS V2.0 HOT 1
- Actualize tags of images in Docker Hub HOT 1
- Wrong url / missing port in storage/app urls
- Google Cloud Run Dockerfile version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-octobercms.