-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.57 KB
/
docker-compose.yml
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
version: "3.8"
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: postgres
POSTGRES_DB: badger_test
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "root", "-d", "badger_test"]
interval: 5s
timeout: 5s
retries: 5
minio:
image: quay.io/minio/minio:RELEASE.2023-09-20T22-49-55Z
ports:
- "9000:9000"
- "9090:9090"
volumes:
- minio_data:/data
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: rootroot
command: ["server", "/data", "--console-address", ":9090"]
minio_init:
image: quay.io/minio/minio:RELEASE.2023-09-20T22-49-55Z
depends_on:
- minio
entrypoint: |
/bin/sh -c "
chmod +x /opt/bin/mc;
mc alias set docker http://minio:9000 root rootroot;
mc mb docker/badger;
mc mb docker/uploads;
exit 0
"
tusd:
image: tusproject/tusd:sha-b4ffdf4
depends_on:
- minio
ports:
- "1080:1080"
environment:
AWS_ACCESS_KEY_ID: root
AWS_SECRET_ACCESS_KEY: rootroot
AWS_REGION: us-east-1
command:
[
"-s3-bucket=uploads",
"-s3-endpoint=http://minio:9000",
"-s3-object-prefix=/uploads",
"-port=1080",
]
ontime:
image: getontime/ontime:v2.28.17
ports:
- "4001:4001"
volumes:
- ontime_data:/server/preloaded-db
volumes:
postgres_data: {}
minio_data: {}
ontime_data: {}