Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Add 31.0: Intro
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 13, 2022
1 parent 0b91c73 commit 3c75649
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ runtime:
- iconv
- mbstring
- pdo_pgsql
- redis
- sodium
- xsl

Expand All @@ -39,6 +40,7 @@ mounts:

relationships:
database: "database:postgresql"
redis: "rediscache:redis"

hooks:
build: |
Expand Down
3 changes: 3 additions & 0 deletions .platform/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ varnish:
files:
type: network-storage:1.0
disk: 256

rediscache:
type: redis:5.0
2 changes: 1 addition & 1 deletion config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ framework:
# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
handler_id: '%env(DATABASE_URL)%'
handler_id: '%env(REDIS_URL)%'
cookie_secure: auto
cookie_samesite: lax
storage_factory_id: session.storage.factory.native
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ services:
# - ./docker/db/data:/var/lib/postgresql/data:rw
###< doctrine/doctrine-bundle ###

redis:
image: redis:5-alpine
ports: [6379]

volumes:
###> doctrine/doctrine-bundle ###
db-data:
Expand Down

0 comments on commit 3c75649

Please sign in to comment.