add Settings class and Twig cache settings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lexi / Zoe 2020-07-01 00:48:22 +02:00
parent 92a4d2fcf8
commit 808681e87a
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
6 changed files with 39 additions and 6 deletions

4
docker/.env.development Normal file
View file

@ -0,0 +1,4 @@
# .env.development: Environment variables for local development
# Disable Twig cache
TWIG_CACHE_DIR=

4
docker/.env.testing Normal file
View file

@ -0,0 +1,4 @@
# .env.testing: Environment variables for testing deployment
# Disable Twig cache -- TODO enable cache
TWIG_CACHE_DIR=

View file

@ -8,5 +8,7 @@ services:
restart: always
ports:
- 8080:80
env_file:
- .env.development
volumes:
- ../:/var/www/

View file

@ -6,6 +6,8 @@ services:
context: ..
target: production
restart: always
env_file:
- .env.testing
networks:
- traefik
labels: