erick revisó este gist . Ir a la revisión
1 file changed, 35 insertions
compose.yaml(archivo creado)
@@ -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: |
Siguiente
Anterior