-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
112 lines (107 loc) · 3.15 KB
/
docker-compose.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
postgresql:
image: ${IMAGE_PREFIX:-}index.docker.io/library/postgres:16.3
environment:
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
minio:
image: ${IMAGE_PREFIX:-}quay.io/minio/minio:latest
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
command:
- server
- /data
- "--address=:9000"
- "--console-address=:9001"
ports:
- "9000:9000"
- "9001:9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:9001"]
interval: 10s
timeout: 10s
retries: 3
start_period: 10s
start_interval: 5s
migrator:
build:
context: .
dockerfile: dockerfiles/Dockerfile.migrator
image: ${IMAGE_PREFIX:-}ghcr.io/teran/archived/migrator:latest
environment:
LOG_LEVEL: trace
METADATA_DSN: postgres://postgres:password@postgresql?sslmode=disable
depends_on:
postgresql:
condition: service_healthy
publisher:
build:
context: .
dockerfile: dockerfiles/Dockerfile.publisher
image: ${IMAGE_PREFIX:-}ghcr.io/teran/archived/publisher:latest
environment:
LOG_LEVEL: trace
METADATA_DSN: postgres://postgres:password@postgresql?sslmode=disable
BLOB_S3_ENDPOINT: "${ARCHIVED_BLOB_S3_ENDPOINT:-http://minio:9000}"
BLOB_S3_BUCKET: "${ARCHIVED_BLOB_S3_BUCKET:-test-bucket}"
BLOB_S3_ACCESS_KEY_ID: minioadmin
BLOB_S3_SECRET_KEY: minioadmin
ports:
- "8080:8080"
depends_on:
postgresql:
condition: service_healthy
migrator:
condition: service_completed_successfully
manager:
build:
context: .
dockerfile: dockerfiles/Dockerfile.manager
image: ${IMAGE_PREFIX:-}ghcr.io/teran/archived/manager:latest
environment:
LOG_LEVEL: trace
METADATA_DSN: postgres://postgres:password@postgresql?sslmode=disable
BLOB_S3_ENDPOINT: "${ARCHIVED_BLOB_S3_ENDPOINT:-http://minio:9000}"
BLOB_S3_BUCKET: "${ARCHIVED_BLOB_S3_BUCKET:-test-bucket}"
BLOB_S3_CREATE_BUCKET: "true"
BLOB_S3_ACCESS_KEY_ID: minioadmin
BLOB_S3_SECRET_KEY: minioadmin
ports:
- "5555:5555"
depends_on:
postgresql:
condition: service_healthy
minio:
condition: service_healthy
migrator:
condition: service_completed_successfully
# seeder:
# build:
# context: .
# dockerfile: dockerfiles/Dockerfile.seeder
# image: ${IMAGE_PREFIX:-}ghcr.io/teran/archived/seeder:latest
# environment:
# LOG_LEVEL: info
# METADATA_DSN: postgres://postgres:password@postgresql?sslmode=disable
# BLOB_S3_CREATE_BUCKET: "true"
# BLOB_S3_ENDPOINT: http://minio:9000
# BLOB_S3_BUCKET: test-bucket
# BLOB_S3_ACCESS_KEY_ID: minioadmin
# BLOB_S3_SECRET_KEY: minioadmin
# depends_on:
# postgresql:
# condition: service_healthy
# minio:
# condition: service_healthy
# migrator:
# condition: service_completed_successfully
volumes:
database:
minio: