-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
107 lines (102 loc) · 3.01 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
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
services:
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: subatic
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: quay.io/minio/minio:latest
container_name: minio
environment:
MINIO_ROOT_USER: user
MINIO_ROOT_PASSWORD: password
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
command: server --console-address ":9001" /data
restart: unless-stopped
create_buckets:
image: minio/mc:latest
restart: no
depends_on:
- minio
environment:
APIKEY: randomApiKeyUser
SECRET: randomApiKeyPassword
MINIO_ROOT_USER: user
MINIO_ROOT_PASSWORD: password
MINIO_HOST: 'http://minio:9000'
volumes:
- ./docker/createBuckets.sh:/create_buckets.sh
entrypoint: ["/bin/sh", "/create_buckets.sh"]
subatic:
# image: ghcr.io/orthdron/subatic:latest-arm64
image: ghcr.io/orthdron/subatic:latest-amd64
# build: .
container_name: subatic
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/subatic
RAWFILES_S3_ACCESS_KEY_ID: randomApiKeyUser
RAWFILES_S3_SECRET_ACCESS_KEY: randomApiKeyPassword
RAWFILES_S3_REGION: "us-east-1"
RAWFILES_S3_BUCKET: subatic
RAWFILES_S3_ENDPOINT: "http://minio:9000"
MAX_FILE_SIZE: 50000
PROCESSED_VIDEO_URL: "http://localhost:9000/subatic"
WEBHOOK_TOKEN: someRandomString
MARK_FAILED_AFTER: 600
APP_HOSTNAME: "http://localhost:3000"
ENABLE_TUNNEL: "true"
TUNNEL_HOSTNAME: "http://localhost"
TUNNEL_PORT: "4000"
ports:
- "3000:3000"
- "4000:4000"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
subatic-transcoding:
# image: ghcr.io/orthdron/subatic-transcoding:latest-arm64
image: ghcr.io/orthdron/subatic-transcoding:latest-amd64
# build: .
container_name: subatic-transcoding
environment:
SQS_ENABLED: false
RAWFILES_S3_ENDPOINT: http://minio:9000
RAWFILES_S3_ACCESS_KEY_ID: randomApiKeyUser
RAWFILES_S3_SECRET_ACCESS_KEY: randomApiKeyPassword
RAWFILES_S3_REGION: "us-east-1"
RAWFILES_S3_BUCKET: subatic
PROCESSED_S3_ACCESS_KEY_ID: randomApiKeyUser
PROCESSED_S3_SECRET_ACCESS_KEY: randomApiKeyPassword
PROCESSED_S3_REGION: "us-east-1"
PROCESSED_S3_BUCKET: subatic
PROCESSED_S3_ENDPOINT: http://minio:9000
WEBHOOK_URL: http://subatic:3000/
WEBHOOK_TOKEN: someRandomString
depends_on:
- subatic
restart: unless-stopped
volumes:
postgres_data:
minio_data: