/ .env.dev
.env.dev
  1  # Default values are optimized for production to avoid having to configure
  2  # much in production.
  3  #
  4  # However it should be easy to get going in development too. If you see an
  5  # uncommented option that means it's either mandatory to set or it's being
  6  # overwritten in development to make your life easier.
  7  
  8  # In production we use NETWORK_MODE=host so it works well with UFW. Locally
  9  # the default of NETWORK_MODE=bridge is fine.
 10  #export NETWORK_MODE=bridge
 11  
 12  # Enable BuildKit by default:
 13  #   https://docs.docker.com/develop/develop-images/build_enhancements
 14  export DOCKER_BUILDKIT=1
 15  
 16  # Rather than use the directory name, let's control the name of the project.
 17  export COMPOSE_PROJECT_NAME=allthethings
 18  
 19  # In development we want all services to start but in production you don't
 20  # need the asset watchers to run since assets get built into the image.
 21  #
 22  # You can even choose not to run mariadb in prod if you plan to use
 23  # managed cloud services. Everything "just works", even optional depends_on!
 24  #export COMPOSE_PROFILES=mariadb,web,elasticsearch,elasticsearchaux,mariapersist,mariapersistreplica,mariabackup
 25  export COMPOSE_PROFILES=mariadb,assets,web,elasticsearch,elasticsearchaux,kibana,mariapersist,mailpit
 26  
 27  # If you're running native Linux and your uid:gid isn't 1000:1000 you can set
 28  # these to match your values before you build your image. You can check what
 29  # your uid:gid is by running `id` from your terminal.
 30  #export UID=1000
 31  #export GID=1000
 32  
 33  # In development avoid writing out bytecode to __pycache__ directories.
 34  #export PYTHONDONTWRITEBYTECODE=
 35  export PYTHONDONTWRITEBYTECODE=true
 36  
 37  # You should generate a random string of 99+ characters for this value in prod.
 38  # You can generate secure secrets by running: ./run flask secrets
 39  export SECRET_KEY=insecure_key_for_dev
 40  
 41  # Another secret key for downloads
 42  export DOWNLOADS_SECRET_KEY=insecure_key_for_dev
 43  
 44  # Which environment is running?
 45  # For Flask, it should be: "true" or "false"
 46  # For Node, it should be: "development" or "production"
 47  #export FLASK_DEBUG=false
 48  #export NODE_ENV=production
 49  export FLASK_DEBUG=true
 50  export NODE_ENV=development
 51  
 52  # In development with Docker Desktop / Linux the default value should work.
 53  # If you have Docker running in a custom VM, put the VM's IP here instead.
 54  #
 55  # In production you'll want to set this to your domain name or whatever you
 56  # plan to access in your browser, such as example.com.
 57  #export SERVER_NAME=localhost:8000
 58  
 59  # The bind port for gunicorn.
 60  #
 61  # Be warned that if you change this value you'll need to change 8000 in both
 62  # your Dockerfile and in a few spots in docker-compose.yml due to the nature of
 63  # how this value can be set (Docker Compose doesn't support nested ENV vars).
 64  #export PORT=8000
 65  
 66  # How many workers and threads should your app use? WEB_CONCURRENCY defaults
 67  # to the server's CPU count * 2. That is a good starting point. In development
 68  # it's a good idea to use 1 to avoid race conditions when debugging.
 69  #export WEB_CONCURRENCY=
 70  export WEB_CONCURRENCY=1
 71  #export PYTHON_MAX_THREADS=1
 72  
 73  # Do you want code reloading to work with the gunicorn app server?
 74  #export WEB_RELOAD=false
 75  export WEB_RELOAD=true
 76  
 77  export MARIADB_USER=allthethings
 78  export MARIADB_PASSWORD=password
 79  export MARIADB_DATABASE=allthethings
 80  #export MARIADB_HOST=mariadb
 81  #export MARIADB_PORT=3306
 82  #export MARIADB_PORT_FORWARD=3306
 83  
 84  # When setting up the replica, don't forgot to check
 85  # out mariapersistreplica-conf/README.txt!
 86  export MARIAPERSIST_USER=mariapersist
 87  export MARIAPERSIST_PASSWORD=password
 88  export MARIAPERSIST_DATABASE=mariapersist
 89  #export MARIAPERSIST_HOST=mariapersist
 90  #export MARIAPERSIST_PORT=3333
 91  #export MARIAPERSIST_PORT_FORWARD=3333
 92  
 93  export MARIAPERSISTREPLICA_SERVER_ID=10000
 94  
 95  #export AUTOSSH_USER=someuser
 96  #export AUTOSSH_HOST=somehost
 97  # Generate using ssh-keygen -t rsa -b 4096 -C "autossh" -f autossh_id_rsa
 98  #export AUTOSSH_ID_RSA=/home/myuser/.ssh/autossh_id_rsa
 99  
100  # Connection string to Redis. This will be used to connect directly to Redis
101  # and for Celery. You can always split up your Redis servers later if needed.
102  #export REDIS_URL=redis://redis:6379/0
103  
104  # You can choose between DEBUG, INFO, WARNING, ERROR, CRITICAL or FATAL.
105  # DEBUG tends to get noisy but it could be useful for troubleshooting.
106  #export CELERY_LOG_LEVEL=info
107  
108  # Should Docker restart your containers if they go down in unexpected ways?
109  #export DOCKER_RESTART_POLICY=unless-stopped
110  #export DOCKER_RESTART_POLICY=no
111  
112  # What health check test command do you want to run? In development, having it
113  # curl your web server will result in a lot of log spam, so setting it to
114  # /bin/true is an easy way to make the health check do basically nothing.
115  #export DOCKER_WEB_HEALTHCHECK_TEST=curl localhost:8000/dyn/up/
116  export DOCKER_WEB_HEALTHCHECK_TEST=/bin/true
117  
118  # What ip:port should be published back to the Docker host for the app server?
119  # If you're using Docker Toolbox or a custom VM you can't use 127.0.0.1. This
120  # is being overwritten in dev to be compatible with more dev environments.
121  #
122  # If you have a port conflict because something else is using 8000 then you
123  # can either stop that process or change 8000 to be something else.
124  #
125  # Use the default in production to avoid having gunicorn directly accessible to
126  # the internet since it'll very likely be behind nginx or a load balancer.
127  #export DOCKER_WEB_PORT_FORWARD=127.0.0.1:8000
128  export DOCKER_WEB_PORT_FORWARD=8000
129  
130  # What volume path should be used? In dev we want to volume mount everything
131  # so that we can develop our code without rebuilding our Docker images.
132  #export DOCKER_WEB_VOLUME=./public:/app/public
133  export DOCKER_WEB_VOLUME=.:/app
134  
135  # To use a different ElasticSearch host:
136  #ELASTICSEARCH_HOST=http://elasticsearch:9200
137  #ELASTICSEARCHAUX_HOST=http://elasticsearchaux:9201
138  
139  # To use an extra fast ElasticSearch host located elsewhere:
140  #export ELASTICSEARCH_HOST_PREFERRED=
141  #export ELASTICSEARCHAUX_HOST_PREFERRED=
142  
143  # To access ElasticSearch/Kibana externally:
144  #export ELASTICSEARCH_PORT_FORWARD=9200
145  #export KIBANA_PORT_FORWARD=5601
146  
147  # Flask email password
148  #export MAIL_PASSWORD=password
149  
150  # mariabackup
151  #export MARIABACKUP_HOST=mariapersistreplica
152  #export MARIABACKUP_PORT=3333
153  #export MARIABACKUP_USER=mariapersist
154  #export MARIABACKUP_PASSWORD=password
155  
156  #export MEMBERS_TELEGRAM_URL=
157  
158  export SLOW_DATA_IMPORTS=true