Settings from env files
This commit is contained in:
@@ -3,9 +3,6 @@
|
|||||||
/.env.local
|
/.env.local
|
||||||
/.env.local.php
|
/.env.local.php
|
||||||
/.env.*.local
|
/.env.*.local
|
||||||
/.env.dev
|
|
||||||
/.env.prod
|
|
||||||
/.env.test
|
|
||||||
/config/secrets/prod/prod.decrypt.private.php
|
/config/secrets/prod/prod.decrypt.private.php
|
||||||
/public/bundles/
|
/public/bundles/
|
||||||
/var/
|
/var/
|
||||||
|
|||||||
+3
-3
@@ -7,11 +7,11 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
# Uncomment the following line to disable HTTPS,
|
# Uncomment the following line to disable HTTPS,
|
||||||
#SERVER_NAME: ':80'
|
#SERVER_NAME: ':80'
|
||||||
MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!'
|
MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_JWT_SECRET}
|
||||||
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!'
|
MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_JWT_SECRET}
|
||||||
# Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive
|
# Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive
|
||||||
MERCURE_EXTRA_DIRECTIVES: |
|
MERCURE_EXTRA_DIRECTIVES: |
|
||||||
cors_origins http://localhost:8080
|
cors_origins ${MERCURE_CORS_ALLOWED_ORIGINS:-http://localhost:8080}
|
||||||
# Comment the following line to disable the development mode
|
# Comment the following line to disable the development mode
|
||||||
command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile
|
command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
doctrine:
|
doctrine:
|
||||||
dbal:
|
dbal:
|
||||||
url: '%env(resolve:DATABASE_URL)%'
|
# url: '%env(resolve:DATABASE_URL)%'
|
||||||
|
driver: '%env(DB_DRIVER)%'
|
||||||
|
server_version: '%env(DB_SERVER_VERSION)%'
|
||||||
|
host: '%env(DB_HOST)%'
|
||||||
|
port: '%env(DB_PORT)%'
|
||||||
|
user: '%env(DB_USER)%'
|
||||||
|
password: '%env(DB_PASSWORD)%'
|
||||||
|
dbname: '%env(DB_NAME)%'
|
||||||
|
charset: '%env(DB_CHARSET)%'
|
||||||
|
|
||||||
# IMPORTANT: You MUST configure your server version,
|
# IMPORTANT: You MUST configure your server version,
|
||||||
# either here or in the DATABASE_URL env var (see .env file)
|
# either here or in the DATABASE_URL env var (see .env file)
|
||||||
|
|||||||
+8
-8
@@ -63,12 +63,12 @@ services:
|
|||||||
container_name: escapepage-mercure
|
container_name: escapepage-mercure
|
||||||
environment:
|
environment:
|
||||||
SERVER_NAME: ":80"
|
SERVER_NAME: ":80"
|
||||||
MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!'
|
MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_JWT_SECRET}
|
||||||
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!'
|
MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_JWT_SECRET}
|
||||||
MERCURE_CORS_ALLOWED_ORIGINS: http://localhost:8080
|
MERCURE_CORS_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS:-http://localhost:8080}
|
||||||
MERCURE_PUBLISH_ALLOWED_ORIGINS: http://localhost:8080
|
MERCURE_PUBLISH_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS:-http://localhost:8080}
|
||||||
MERCURE_EXTRA_DIRECTIVES: |
|
MERCURE_EXTRA_DIRECTIVES: |
|
||||||
cors_origins http://localhost:8080
|
cors_origins ${MERCURE_CORS_ALLOWED_ORIGINS:-http://localhost:8080}
|
||||||
# Allow anonymous subscribers in dev only
|
# Allow anonymous subscribers in dev only
|
||||||
anonymous
|
anonymous
|
||||||
ports:
|
ports:
|
||||||
@@ -82,9 +82,9 @@ services:
|
|||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
container_name: escapepage-db
|
container_name: escapepage-db
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: ${MYSQL_DATABASE:-app}
|
MYSQL_DATABASE: ${DB_NAME:-app}
|
||||||
MYSQL_USER: ${MYSQL_USER:-app}
|
MYSQL_USER: ${DB_USER:-app}
|
||||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-!ChangeMe!}
|
MYSQL_PASSWORD: ${DB_PASSWORD:-!ChangeMe!}
|
||||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-uroot", "-p${MYSQL_ROOT_PASSWORD:-root}"]
|
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-uroot", "-p${MYSQL_ROOT_PASSWORD:-root}"]
|
||||||
|
|||||||
Reference in New Issue
Block a user