Zuletzt aktiv 1739978512 Unlisted

This is a small example of how to get a Ghost blog up and running using Docker Compose.

erick's Avatar erick hat die Gist bearbeitet 1739978512. Zu Änderung gehen

1 file changed, 35 insertions

compose.yaml(Datei erstellt)

@@ -0,0 +1,35 @@
1 + services:
2 +
3 + ghost:
4 + image: ghost:5
5 + restart: always
6 + ports:
7 + - 8080:2368
8 + depends_on:
9 + - db
10 + environment:
11 + database__client: mysql
12 + database__connection__host: db
13 + database__connection__user: root
14 + database__connection__password: example
15 + database__connection__database: ghost
16 + url: http://localhost:8080
17 + volumes:
18 + - ./content:/var/lib/ghost/content
19 +
20 + db:
21 + image: mysql:8.0
22 + restart: always
23 + healthcheck:
24 + test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "--silent" ]
25 + interval: 5s
26 + timeout: 3s
27 + retries: 2
28 + environment:
29 + MYSQL_ROOT_PASSWORD: example
30 + volumes:
31 + - ./db:/var/lib/mysql
32 +
33 + volumes:
34 + ghost:
35 + db:
Neuer Älter