forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.object-storage.yml
More file actions
64 lines (61 loc) · 2 KB
/
compose.object-storage.yml
File metadata and controls
64 lines (61 loc) · 2 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
services:
ghost:
extends:
file: compose.yml
service: ghost
profiles: [object-storage]
environment:
- storage__media__adapter=S3Storage
- storage__media__staticFileURLPrefix=content/media
- storage__files__adapter=S3Storage
- storage__files__staticFileURLPrefix=content/files
- storage__S3Storage__bucket=ghost-dev
- storage__S3Storage__region=us-east-1
- storage__S3Storage__tenantPrefix=ab/ab1234567890abcdef1234567890abcd
- storage__S3Storage__forcePathStyle=true
- storage__S3Storage__cdnUrl=http://127.0.0.1:9000/ghost-dev
- storage__S3Storage__staticFileURLPrefix=content/images
- storage__S3Storage__endpoint=http://minio:9000
- storage__S3Storage__accessKeyId=minio-user
- storage__S3Storage__secretAccessKey=minio-pass
- urls__media=http://127.0.0.1:9000/ghost-dev/ab/ab1234567890abcdef1234567890abcd
- urls__files=http://127.0.0.1:9000/ghost-dev/ab/ab1234567890abcdef1234567890abcd
depends_on:
minio:
condition: service_healthy
minio-setup:
condition: service_completed_successfully
minio:
profiles: [object-storage]
image: minio/minio:RELEASE.2024-12-13T22-19-12Z
container_name: ghost-minio
command: server /data --console-address ':9001'
restart: always
environment:
- MINIO_ROOT_USER=minio-user
- MINIO_ROOT_PASSWORD=minio-pass
ports:
- '9000:9000'
- '9001:9001'
volumes:
- minio-data:/data
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/ready']
interval: 1s
retries: 120
minio-setup:
profiles: [object-storage]
image: minio/mc
entrypoint: ['/bin/sh', '/setup.sh']
environment:
- MINIO_ROOT_USER=minio-user
- MINIO_ROOT_PASSWORD=minio-pass
- MINIO_BUCKET=ghost-dev
volumes:
- ./docker/minio/setup.sh:/setup.sh:ro
depends_on:
minio:
condition: service_healthy
restart: 'no'
volumes:
minio-data: {}