-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack-ghost.yml
More file actions
82 lines (75 loc) · 2.43 KB
/
Copy pathstack-ghost.yml
File metadata and controls
82 lines (75 loc) · 2.43 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# The environment file is missing but its pretty obvious as to what it should contain
# This stack is deployed using Portainer CE
services:
db:
image: mysql:8.0
container_name: mysql8
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
TZ: "Australia/Perth"
volumes:
- /srv/ghost/mysql:/var/lib/mysql:rw
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h mysql8 -u root -p${MYSQL_ROOT_PASSWORD} --silent; exit $?"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
networks:
- ghost
ghost:
image: ghost:latest
container_name: ghost
restart: always
ports:
- 2368:2368
environment:
database__client: mysql
database__connection__host: db
database__connection__user: ${USER}
database__connection__password: ${MYSQL_ROOT_PASSWORD}
database__connection__database: ghost
# The URL MUST be set to https instead of http
url: https://www.braedach.com
TZ: "Australia/Perth"
mail__transport: SMTP
mail__from: "Braedach - Always Learning <ghost@braedach.com>"
mail__options__service: Mailgun
mail__options__host: "smtp.mailgun.org"
mail__options__port: 465
mail__options__secureConnection: "true"
mail__options__auth__user: $(GHOST_MAIL_USER)
mail__options__auth__pass: $(GHOST_MAIL_PASS)
volumes:
- /srv/ghost/content:/var/lib/ghost/content:rw
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
db:
condition: service_healthy
networks:
- ghost
debian-test:
# Debian test container install the following if requiring interaction with mysql
# apt-get install -y default-mysql-client
# doing this allows for network testing along with interaction with the database
image: debian:latest
container_name: debian-test
command: ["sleep", "3600"] # Keeps the container running for testing purposes
environment:
- DATABASE_CONNECTION_HOST= db
- DATABASE-CONNECTION_USER= ${USER}
- DATABASE_CONNECTION_PASSWORD= ${MYSQL_ROOT_PASSWORD}
- DATABASE_CONNECTION_DATABASE= ghost
- MYSQL_ROOT_PASSWORD= ${MYSQL_ROOT_PASSWORD}
restart: always
networks:
- ghost
networks:
ghost:
name: ghost
driver: bridge
enable_ipv6: false