Questions tagged [12factor]

The twelve-factor app is a methodology for building software-as-a-service apps.

The twelve-factor app is a methodology for building software-as-a-service apps.

See http://www.12factor.net/

90 questions
35
votes
6 answers

How to pass environment variables to a frontend web application?

I am trying to containerize a frontend web application and I am having troubles to figure out how to pass environment variables. The application is a Angular application, so it is 100% client-side. In a typical backend service, passing environment…
dockernodejs
  • 359
  • 1
  • 3
  • 4
20
votes
3 answers

Managing config in 12-factor applications

I've enjoyed using Rails on Heroku, and like that I can adjust the configuration property of a Heroku app without having to commit a change to xyz.yml and redeploy. It would be nice to completely do away with the Yaml config files in my Rails app,…
maxenglander
  • 3,991
  • 4
  • 30
  • 40
17
votes
3 answers

Using dotenv files with Spring Boot

I'd like to use dotenv files to configure my Spring Boot application. What is the best way to do this? In Ruby or Node world, I just creating .env file and it loads all stuff from there to application environment. I don't like to create separate…
Vova Rozhkov
  • 1,582
  • 2
  • 19
  • 27
15
votes
3 answers

Where to store SSL certificates for a 12-factor app

A Twelve factor app is expected to store configuration in the environment. Is this intended to include SSL certificate and key files, which can be "large" (multiples of kb at least), and (depending on the format), often contain non-printable…
Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
15
votes
2 answers

12Factor App: Capturing stdout/stderr logs with Fluentd

By reading the following post from 12factor I have come up with a question I'd like to check how you guys handle this. Basically, an app should write directly to stdout/stderr. Is there anyway to redirect these streams directly to fluentd (not bound…
resilva87
  • 3,325
  • 5
  • 32
  • 43
11
votes
4 answers

Rendering an environment variable to the browser in a react.js redux production build running in different environments

The readme of the react redux realworld.io application at https://github.com/gothinkster/react-redux-realworld-example-app says to edit the src/agent.js to change the API_ROOT to point to a different backend api instance. We want to set things up so…
simbo1905
  • 6,321
  • 5
  • 58
  • 86
11
votes
1 answer

Is passing application configuration in stdin a secure alternative to environment variables?

I'm trying to figure out the best approach to web application configuration. The goals are: Configurability. Force the configuration to be specified in deploy time. Make sure the configuration is kept separate from the code or deployable…
maciekszajna
  • 325
  • 1
  • 4
  • 9
11
votes
2 answers

How to Handle Runtime Configuration of Symfony2 Using Consul Service Discovery

Our team is presently exploring the idea of service discovery for a Symfony2 application using Consul. Being in the relative frontier, there's very little out there in the way of discussion. So far we've discovered: Runtime configuration has…
10
votes
2 answers

Respecting the codebase factor (from 12-factor app manifesto) for a Gradle/Spring app deployed on Cloudfoundry or Heroku

My question relates to the first factor of 12 factor apps manifesto: the codebase. (see http://12factor.net/codebase). TL;DR: this factor states there's a one to one relationship between codebases and deploys, so in this case, you're not supposed to…
balteo
  • 23,602
  • 63
  • 219
  • 412
10
votes
3 answers

12 factor app config and Java

I was reading the 12 factor app manifesto http://12factor.net/. The manifesto recommends storing the configuration data for the application in Enviornment variables. Does this mean that properties like the DB username / password, resource URL should…
mithrandir
  • 1,323
  • 4
  • 18
  • 39
10
votes
2 answers

Deploying Django app on Heroku: Can I manually set environment variables in the .env file? Do I need to install tools like autoenv, heroku-config...?

My goal: I intend to follow "The Twelve-Factor App" methodology for building my Django app on Heroku. Introduction: I'm following the "Getting Started with Django on Heroku" quick start guide. At the moment I have the following directory structure: …
oubiga
  • 193
  • 3
  • 12
9
votes
1 answer

Define environment variable in Dockerfile or docker-compose?

After reading the config point of the 12 factor app I decided to override my config file containing default value with environment variable. I have 3 Dockerfiles, one for an API, one for a front-end and one for a worker. I have one…
9
votes
1 answer

12factor config approach with Docker

Is there yet any native or commonly-accepted approaches to using environment variables to control Docker behaviour, i.e. in a 12factor manner? The only language-agnostic method I've seen is to pollute the docker run command with -e variables. The…
rgareth
  • 3,377
  • 5
  • 23
  • 35
8
votes
7 answers

Tomcat, Docker, Logging, and STDOUT?

I'm running tomcat in docker, but I can't see the logs. They are written to various log files under tomcat/logs, but I can't see them when tomcat is running in a docker container. Here is my Dockerfile FROM tomcat:7-jre8 COPY target/MYAPP.war…
Oleg
  • 121
  • 1
  • 1
  • 4
8
votes
2 answers

Where to store config parameters?

Reading Config section for 12 factor app : https://12factor.net/config it states "Another approach to config is the use of config files which are not checked into revision control" . Instead "The twelve-factor app stores config in environment…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
1
2 3 4 5 6