forked from dailydotdev/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (69 loc) · 3.21 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
version: "3"
volumes:
db:
pg:
redis:
services:
daily-redis:
image: redis:6
healthcheck:
test: redis-cli ping
interval: 1s
timeout: 3s
retries: 60
command: redis-server --appendonly yes
volumes:
- redis:/data
ports:
- "6379:6379"
daily-postgres:
image: postgres:15.4-alpine
healthcheck:
test: pg_isready -U postgres -d $$POSTGRES_DB
interval: 1s
timeout: 3s
retries: 60
ports:
- "5432:5432"
volumes:
- pg:/var/lib/postgresql/data
environment:
- POSTGRES_DB=api
- POSTGRES_PASSWORD=12345
command:
- "postgres"
- "-c"
- "wal_level=logical"
daily-api:
image: us.gcr.io/daily-ops/daily-api
depends_on:
daily-postgres:
condition: service_healthy
daily-redis:
condition: service_healthy
command:
["npm", "run", "start"]
ports:
- "5000:5000"
volumes:
- .cert:/opt/app/.cert
environment:
- TYPEORM_HOST=daily-postgres
- PORT=5000
- TZ=UTC
- ACCESS_SECRET='topsecret'
- DEFAULT_IMAGE_URL=https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001,https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002,https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003,https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004,https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005,https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006,https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007,https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008,https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009,https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010,https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011,https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012
- DEFAULT_IMAGE_RATIO=1
- DEFAULT_IMAGE_PLACEHOLDER=data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAKAAoDASIAAhEBAxEB/8QAFwAAAwEAAAAAAAAAAAAAAAAABAUGB//EACYQAAIABAQGAwAAAAAAAAAAAAECAAMEBRESE0IGByExQVFScZH/xAAVAQEBAAAAAAAAAAAAAAAAAAABA//EABURAQEAAAAAAAAAAAAAAAAAAAAR/9oADAMBAAIRAxEAPwCgPMKtsdvWjpamiGsuCBVZzn3NmOAB+wYUni23kkz71OM09XObd5jBKufNagklprk4jux9QBqP82/YpQ//2Q==
- URL_PREFIX=http://localhost:4000
- COMMENTS_PREFIX=http://localhost:5002
- REDIS_HOST=daily-redis
- REDIS_PORT=6379
- COOKIES_KEY=topsecret
- JWT_SECRET='|r+.2!!!.Qf_-|63*%.D'
- JWT_AUDIENCE='Daily Staging'
- JWT_ISSUER='Daily API Staging'
- JWT_PUBLIC_KEY_PATH=/opt/app/.cert/public.pem
- JWT_PRIVATE_KEY_PATH=/opt/app/.cert/key.pem
- GROWTHBOOK_CLIENT_KEY='local'
- MOCK_USER_ID=testuser