-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.env
62 lines (44 loc) · 1.6 KB
/
.env
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
# unify separator with windows style
COMPOSE_PATH_SEPARATOR=;
# dev is default target
COMPOSE_FILE=docker-compose.yml;docker/dev.yml
# for dev only: connection to local product opener network and for Product Opener redis
# in staging
COMMON_NET_NAME=po_default
SECRET_KEY=key
DEBUG=True
TAG=latest
ALLOWED_HOSTS=localhost,127.0.0.1
CSRF_TRUSTED_ORIGINS=http://127.0.0.1:8000
API_PORT=127.0.0.1:8000
# authentication server
OAUTH2_SERVER_URL=https://world.openfoodfacts.org/cgi/auth.pl
# by default on dev desktop, no restart
RESTART_POLICY=no
# Sentry DNS for bug tracking, used only in staging and production
SENTRY_DNS=
# Log level to use, DEBUG by default in dev
LOG_LEVEL=DEBUG
# Postgres database
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
# Host is postgres, as we're using docker and the service name is "postgres"
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_EXPOSE=127.0.0.1:5432
ENVIRONMENT=net
GUNICORN_WORKERS=1
# We use special `host.docker.internal` to access the localhost (=your laptop) from
# the docker container
# It works because we added the special `host.docker.internal:host-gateway`
# host in dev.yml for all services
# Triton is the ML inference server used at Open Food Facts
TRITON_URI=host.docker.internal:5504
# By default, don't enable ML predictions, as we don't necessarily have a Triton
# server running.
# During local development, to enable ML predictions, set this to True and make sure
# you have Triton running on port 5504.
ENABLE_ML_PREDICTIONS=False
# If you want to enable listening for Redis updates, set this to True
ENABLE_REDIS_UPDATES=False