-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcompose.yaml
More file actions
76 lines (71 loc) · 2.14 KB
/
Copy pathcompose.yaml
File metadata and controls
76 lines (71 loc) · 2.14 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
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: contentcloud
POSTGRES_PASSWORD: contentcloud-dev-only
POSTGRES_DB: contentcloud
healthcheck:
test: [CMD-SHELL, pg_isready -U contentcloud]
interval: 3s
timeout: 3s
retries: 20
volumes:
- postgres-data:/var/lib/postgresql/data
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
command: server /data --console-address :9001
environment:
MINIO_ROOT_USER: contentcloud
MINIO_ROOT_PASSWORD: contentcloud-dev-secret
healthcheck:
test: [CMD, mc, ready, local]
interval: 3s
timeout: 3s
retries: 20
volumes:
- minio-data:/data
minio-init:
image: minio/mc:RELEASE.2025-04-16T18-13-26Z
depends_on:
minio: {condition: service_healthy}
entrypoint: [/bin/sh, -c]
command:
- mc alias set local http://minio:9000 contentcloud contentcloud-dev-secret && mc mb --ignore-existing local/contentcloud
server:
build:
context: .
dockerfile: Dockerfile.server
environment: &app-environment
CONTENTCLOUD_DATABASE_URL: postgres://contentcloud:contentcloud-dev-only@postgres:5432/contentcloud?sslmode=disable
CONTENTCLOUD_AUTO_MIGRATE: "1"
CONTENTCLOUD_S3_BUCKET: contentcloud
CONTENTCLOUD_S3_REGION: us-east-1
CONTENTCLOUD_S3_ENDPOINT: http://minio:9000
CONTENTCLOUD_S3_ACCESS_KEY_ID: contentcloud
CONTENTCLOUD_S3_SECRET_ACCESS_KEY: contentcloud-dev-secret
CONTENTCLOUD_S3_PATH_STYLE: "1"
CONTENTCLOUD_DEV_MODE: "1"
depends_on:
postgres: {condition: service_healthy}
minio-init: {condition: service_completed_successfully}
ports:
- 8080:8080
healthcheck:
test: [CMD, wget, -qO-, http://localhost:8080/healthz]
interval: 3s
timeout: 3s
retries: 20
worker:
build:
context: .
dockerfile: Dockerfile.worker
environment:
<<: *app-environment
CONTENTCLOUD_AUTO_MIGRATE: "0"
CONTENTCLOUD_REQUIRE_MALWARE_SCAN: "1"
depends_on:
server: {condition: service_healthy}
volumes:
postgres-data:
minio-data: