# Not used with sqlite3.
'PASSWORD': os.environ.get('POSTGRES_PASSWORD'),
# Set to empty string for localhost. Not used with sqlite3.
- 'HOST': 'postgres',
+ 'HOST': os.environ.get('DB_HOST'),
# Set to empty string for default. Not used with sqlite3.
- 'PORT': '',
+ 'PORT': os.environ.get('DB_PORT'),
}
}
- ./var/log/app:/var/log/app
- ./var/log/uwsgi:/var/log/uwsgi
links:
- - postgres
+ - db
- redis
ports:
- "8000:8000"
- ./var/log/app:/var/log/app
- ./var/log/uwsgi:/var/log/uwsgi
links:
- - postgres
+ - db
- redis
ports:
- "8001:8000"
env_file:
- 'env/debug.env'
- postgres:
+ db:
image: postgres:13
env_file:
- env/debug.env
volumes:
app:
- postgres:
+ db:
redis:
- ./var/log/app:/var/log/app
- ./var/log/uwsgi:/var/log/uwsgi
links:
- - postgres
+ - db
- redis
env_file:
- env/debug.env
- postgres:
+ db:
image: postgres:13
env_file:
- env/debug.env
volumes:
app:
- postgres:
+ db:
redis:
DEBUG=True
DB_PORT=5432
-DB_HOST=postgres
+DB_HOST=db
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_DATABASE=teleforma
POSTGRES_USER=teleforma
DEBUG=False
DB_PORT=5432
-DB_HOST=postgres
+DB_HOST=db
POSTGRES_PASSWORD=EtOdlerlOt8ob
POSTGRES_DATABASE=teleforma
POSTGRES_USER=teleforma
DEBUG=False
DB_PORT=5432
-DB_HOST=postgres
+DB_HOST=db
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_DATABASE=teleforma
POSTGRES_USER=teleforma
ports:
- "9004:8000"
links:
- - postgres
+ - db
- redis
env_file:
- env/prod.env
networks:
- teleforma-prod
- postgres:
- image: postgres:13
+ db:
env_file:
- env/prod.env
networks:
volumes:
app:
channels:
- postgres:
+ db:
redis:
DEBUG=True
DB_PORT=5432
-DB_HOST=postgres
+DB_HOST=db
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_DATABASE=teleforma
POSTGRES_USER=teleforma
ports:
- "9002:8000"
links:
- - postgres
+ - db
- redis
env_file:
- env/staging.env
networks:
- teleforma-staging
- postgres:
- image: postgres:13
+ db:
env_file:
- env/staging.env
networks:
volumes:
app:
channels:
- postgres:
+ db:
redis:
networks: