-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose-dev.yml
154 lines (144 loc) · 4.69 KB
/
docker-compose-dev.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3'
# Define common configurations that can be reused
x-common-environment: &common-environment
NODE_ENV: ${NODE_ENV}
APP_PORT: ${APP_PORT}
BASE_URL: ${BASE_URL}
PLAYER_URL: ${PLAYER_URL}
DB_PASSWORD_FILE: ${DB_PASSWORD_FILE}
DB_HOST: ${DB_HOST}
DB_USER: ${DB_USER}
DB_NAME: ${DB_NAME}
JWT_SECRET_FILE: ${JWT_SECRET_FILE}
JWT_EXPIRY: ${JWT_EXPIRY}
CORS_ORIGIN: ${CORS_ORIGIN}
CORS_CREDENTIALS: ${CORS_CREDENTIALS}
CORS_PROXY_URL: ${CORS_PROXY_URL}
LIVEPEER_API_KEY_FILE: ${LIVEPEER_API_KEY_FILE}
THIRDWEB_SECRET_KEY_FILE: ${THIRDWEB_SECRET_KEY_FILE}
SPACES_KEY_FILE: ${SPACES_KEY_FILE}
SPACES_SECRET_FILE: ${SPACES_SECRET_FILE}
BUCKET_NAME: ${BUCKET_NAME}
BUCKET_URL: ${BUCKET_URL}
LIVEPEER_WEBHOOK_SECRET_FILE: ${LIVEPEER_WEBHOOK_SECRET_FILE}
LIVEPEER_BASE_URL: ${LIVEPEER_BASE_URL}
TELEGRAM_API_KEY_FILE: ${TELEGRAM_API_KEY_FILE}
TELEGRAM_CHAT_ID_FILE: ${TELEGRAM_CHAT_ID_FILE}
OAUTH_SECRET_FILE: ${OAUTH_SECRET_FILE}
TWITTER_OAUTH_SECRET_FILE: ${TWITTER_OAUTH_SECRET_FILE}
TWITTER_CLIENT_ID_FILE: ${TWITTER_CLIENT_ID_FILE}
GOOGLE_OAUTH_SECRET_FILE: ${GOOGLE_OAUTH_SECRET_FILE}
GOOGLE_CLIENT_ID_FILE: ${GOOGLE_CLIENT_ID_FILE}
SERVICE_ACCOUNT_PRIVATE_KEY_FILE: ${SERVICE_ACCOUNT_PRIVATE_KEY_FILE}
SERVICE_ACCOUNT_EMAIL_FILE: ${SERVICE_ACCOUNT_EMAIL_FILE}
MAIL_HOST: ${MAIL_HOST}
MAIL_PORT: ${MAIL_PORT}
MAIL_USER_FILE: ${MAIL_USER_FILE}
MAIL_PASS_FILE: ${MAIL_PASS_FILE}
MAGIC_LINK_SECRET_FILE: ${MAGIC_LINK_SECRET_FILE}
MAGIC_LINK_EXPIRY: ${MAGIC_LINK_EXPIRY}
WALLET_ADDRESSES: ${WALLET_ADDRESSES}
REMOTION_BASE_URL: http://reel-creator:4000
REMOTION_WEBHOOK_SECRET_FILE: ${LIVEPEER_WEBHOOK_SECRET_FILE}
REMOTION_ID: pebs
PIPEDREAM_AUTH_TOKEN_FILE: ${PIPEDREAM_AUTH_TOKEN_FILE}
DEVCON_UPLOAD_ENDPOINT_FILE: ${DEVCON_UPLOAD_ENDPOINT_FILE}
LOG_DIR: ${LOG_DIR}
LOG_FORMAT: ${LOG_FORMAT}
REDIS_PASSWORD_FILE: ${REDIS_PASSWORD_FILE}
REDIS_HOST: redis
REDIS_PORT: 6379
OPENAI_API_KEY_FILE: ${OPENAI_API_KEY_FILE}
GEMINI_API_KEY_FILE: ${GEMINI_API_KEY_FILE}
STRIPE_API_KEY_FILE: ${STRIPE_API_KEY_FILE}
STRIPE_PUBLISHABLE_KEY_FILE: ${STRIPE_PUBLISHABLE_KEY_FILE}
STRIPE_SECRET_KEY_FILE: ${STRIPE_SECRET_KEY_FILE}
FRONTEND_URL: ${FRONTEND_URL}
PINECONE_API_KEY_FILE: ${PINECONE_API_KEY_FILE}
x-common-worker: &common-worker
volumes:
- ./packages/server:/app/packages/server
- /app/packages/server/node_modules
depends_on:
- mongodb
- redis
services:
session-transcriptions:
<<: *common-worker
build:
context: .
dockerfile: ./packages/server/workers/session-transcriptions/Dockerfile.dev
environment: *common-environment
clips:
<<: *common-worker
build:
context: .
dockerfile: packages/server/workers/clips/Dockerfile.dev
environment:
<<: *common-environment
REMOTION_WEBHOOK_URL: https://kit-great-optionally.ngrok-free.app/webhook/remotion
reel-creator:
build:
context: .
dockerfile: packages/reel-creator/Dockerfile.dev
volumes:
- ./packages/reel-creator:/app/packages/reel-creator
- /app/packages/reel-creator/node_modules
environment:
NODE_ENV: ${NODE_ENV}
SERVER_WEBHOOK_URL: https://kit-great-optionally.ngrok-free.app/webhook/remotion
SERVER_WEBHOOK_SECRET_FILE: ${LIVEPEER_WEBHOOK_SECRET_FILE}
AWS_ACCESS_KEY_ID_FILE: ${AWS_ACCESS_KEY_ID_FILE}
AWS_SECRET_ACCESS_KEY_FILE: ${AWS_SECRET_ACCESS_KEY_FILE}
SITE_NAME: local-dev
ports:
- "4000:4000"
stage-transcriptions:
<<: *common-worker
build:
context: .
dockerfile: packages/server/workers/stage-transcriptions/Dockerfile.dev
environment:
<<: *common-environment
server:
<<: *common-worker
build:
context: .
dockerfile: packages/server/src/Dockerfile.dev
ports:
- "3400:3400"
environment:
<<: *common-environment
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
- ./mongo-init:/docker-entrypoint-initdb.d
environment:
MONGO_INITDB_DATABASE: streameth
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD_FILE}
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh redis:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
command: --auth --bind_ip_all
redis:
image: redis:alpine
ports:
- "6379:6379"
command: redis-server --requirepass ${REDIS_PASSWORD_FILE}
volumes:
- redis_data:/data
healthcheck:
test: sh -c "redis-cli -a $$(cat ${REDIS_PASSWORD_FILE}) ping"
interval: 10s
timeout: 5s
retries: 5
volumes:
mongodb_data:
redis_data: