-
-
Notifications
You must be signed in to change notification settings - Fork 166
Expand file tree
/
Copy pathghost.yml
More file actions
61 lines (57 loc) · 1.72 KB
/
ghost.yml
File metadata and controls
61 lines (57 loc) · 1.72 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# DOMAIN=example.com docker stack deploy -c ghost.yml ghost
services:
web:
image: ghost:${VERSION:-6.0.4-alpine}
volumes:
- ${VOLUME_PATH}ghost:/var/lib/ghost/content
environment:
- NODE_ENV=${NODE_ENV:-production}
- url=https://${DOMAIN:-ghost.localhost}
- database__client=${DATABASE_CLIENT:-mysql}
- database__connection__user=${DATABASE_USER:-ghost}
- database__connection__host=${DATABASE_HOST:-mariadb}
- database__connection__database=${DATABASE_NAME:-ghost}
- database__connection__password=${DATABASE_PASSWORD:-myp@ssw0rd}
- mail__transport=${MAIL_TRANSPORT:-SMTP}
- mail__from=${SMTP_FROM}
- mail__options__host=${SMTP_HOST}
- mail__options__name=${SMTP_HOST}
- mail__options__port=${SMTP_PORT:-587}
- mail__options__auth__user=${SMTP_USER}
- mail__options__auth__pass=${SMTP_PASSWORD}
deploy:
resources:
limits:
memory: ${MEMORY_LIMIT:-2G}
labels:
- traefik.enable=true
- traefik.http.routers.ghost-${NUMBER:-1}.rule=Host(`${DOMAIN:-ghost.localhost}`)
- traefik.http.services.ghost-${NUMBER:-1}.loadbalancer.server.port=2368
networks:
- internal
- traefik
mariadb:
image: mariadb:${MARIADB_VERSION:-10.6}
environment:
- MYSQL_USER=ghost
- MYSQL_DATABASE=ghost
- MYSQL_PASSWORD=myp@ssw0rd
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql
deploy:
resources:
limits:
memory: ${MEMORY_LIMIT:-2G}
networks:
- internal
volumes:
ghost:
mariadb:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net