Son aktivite 1739978512 Unlisted

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

Revizyon ab697e2815f4efc5a1183992f01c2216e01d3295

compose.yaml Ham
1services:
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
33volumes:
34 ghost:
35 db:
36