-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.38 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.1'
services:
ghost:
image: ghost:${GHOST_VERSION:-latest}
container_name: ghost
restart: always
volumes:
- ${DATA_DIR}:/var/lib/ghost/content
- ${CUSTOM_THEME_PATH}:/var/lib/ghost/content/themes/custom-theme
ports:
- ${PORT}:2368
environment:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: ${SQL_PASSWORD}
database__connection__database: ghost
mail__transport: SMTP
mail__from: ${SMTP_MAIL_FROM}
mail__options__service: SMTP
mail__options__host: ${SMTP_MAIL_HOST}
mail__options__port: ${SMTP_MAIL_PORT}
#mail__options__secureConnection: 'true'
#mail__options__auth__user: ${SMTP_MAIL_USER}
#mail__options__auth__pass: ${SMTP_MAIL_PASS}
privacy__useUpdateCheck: ${GHOST_PRIVACY_USE_UPDATECHECK:-true}
privacy__useGravatar: ${GHOST_PRIVACY_USE_GRAVATAR:-true}
privacy__useRpcPing: ${GHOST_PRIVACY_USE_RPCPING:-true}
privacy__useStructuredData: ${GHOST_PRIVACY_USE_STRUCTUREDDATA:-true}
url: ${URL}
db:
image: mysql:${MYSQL_VERSION:-5.7}
container_name: ghost-mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${SQL_PASSWORD}
volumes:
- ${DATA_DB_DIR}:/var/lib/mysql