mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-01-18 07:17:05 +00:00
Update docker-compose.yml
add envs
This commit is contained in:
parent
647e7939fa
commit
e1072339dd
|
@ -11,19 +11,19 @@ services:
|
|||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/content:/var/lib/ghost/content
|
||||
environment:
|
||||
# see https://ghost.org/docs/config/#configuration-options
|
||||
database__client: mysql
|
||||
database__connection__host: database
|
||||
database__connection__user: ghost
|
||||
database__connection__password: MyStrongDatabasePassword
|
||||
database__connection__database: ghost
|
||||
database__client: ${DB_CLIENT:-mysql}
|
||||
database__connection__host: ${DB_HOST:-database}
|
||||
database__connection__user: ${DB_USER:-ghost}
|
||||
database__connection__password: ${DB_ROOT_PASS:-DatabasePassword1234}
|
||||
database__connection__database: ${DB_NAME:-ghost}
|
||||
# url: https://blog.example.com # change this for production
|
||||
NODE_ENV: production
|
||||
#mail__transport: SMTP
|
||||
#mail__options__host: smtp.gmail.com
|
||||
#mail__options__port: 587
|
||||
#mail__options__auth__user: blog@example.com
|
||||
#mail__options__auth__pass: MyStrongSmtpLoginPassword
|
||||
#mail__from: Ghost Blog <blog@example.com>
|
||||
#mail__options__host: ${SMTP_HOST:-smtp.google.com}
|
||||
#mail__options__port: ${SMTP_PORT:-587}
|
||||
#mail__options__auth__user: ${SMTP_USER:-ghost@example.com}
|
||||
#mail__options__auth__pass: ${SMTP_PASS:-SMTPPassword}
|
||||
#mail__from: ${SMTP_MAIL_FROM:-Ghost}
|
||||
#networks:
|
||||
# - proxy
|
||||
#labels:
|
||||
|
@ -43,10 +43,10 @@ services:
|
|||
expose:
|
||||
- 3306
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: AnotherStrongDatabasePasswordForRootUser
|
||||
MYSQL_DATABASE: ghost
|
||||
MYSQL_USER: ghost
|
||||
MYSQL_PASSWORD: MyStrongDatabasePassword
|
||||
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS:-DatabaseRootPassword54321}
|
||||
MYSQL_DATABASE: ${DB_NAME:-ghost}
|
||||
MYSQL_USER: ${DB_USER:-ghost}
|
||||
MYSQL_PASSWORD: ${DB_USER_PASS:-DatabasePassword1234}
|
||||
#networks:
|
||||
# - proxy
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user