-
Notifications
You must be signed in to change notification settings - Fork 60
/
docker-compose.yml
146 lines (141 loc) · 4.32 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
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
services:
db:
image: postgres:15.8
environment:
- 'POSTGRES_USER=latitude'
- 'POSTGRES_PASSWORD=secret'
ports:
- '5432:5432'
volumes:
- ./docker/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
- ./docker/pgdata:/var/lib/postgresql/data
redis:
image: redis
ports:
- '6379:6379'
mailpit:
image: axllent/mailpit
ports:
- 8025:8025
- 1025:1025
web:
build:
platforms:
- 'linux/amd64'
context: .
dockerfile: apps/web/docker/Dockerfile
args:
- BUILDING_CONTAINER=true
- LATITUDE_URL=$LATITUDE_URL
- NEXT_PUBLIC_POSTHOG_HOST=$NEXT_PUBLIC_POSTHOG_HOST
- NEXT_PUBLIC_POSTHOG_KEY=$NEXT_PUBLIC_POSTHOG_KEY
- SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
- SENTRY_DSN=$SENTRY_DSN
- SENTRY_ORG=$SENTRY_ORG
- SENTRY_PROJECT=$SENTRY_PROJECT
- SUPPORT_APP_ID=$SUPPORT_APP_ID
- SUPPORT_APP_SECRET_KEY=$SUPPORT_APP_SECRET_KEY
profiles: [building]
ports:
- '8080:8080'
environment:
- NODE_ENV=staging
- PORT=8080
- DATABASE_URL=postgresql://latitude:secret@db:5432/latitude_development
- QUEUE_PORT=6379
- QUEUE_HOST=redis
- CACHE_PORT=6379
- CACHE_HOST=redis
- GATEWAY_PORT=8081
- GATEWAY_HOSTNAME=gateway
- GATEWAY_SSL=false
- LATITUDE_DOMAIN=localhost:8080
- LATITUDE_URL=http://localhost:8080
- WEBSOCKETS_SERVER=http://localhost:4002
- WEBSOCKET_SECRET_TOKEN_KEY=secret-token-key
- WEBSOCKET_REFRESH_SECRET_TOKEN_KEY=refresh-refresh-token-key
- WORKERS_WEBSOCKET_SECRET_TOKEN=workers-secret-token
- DRIVE_DISK=local
- FILE_PUBLIC_PATH='uploads'
- FILES_STORAGE_PATH='/app'
- PUBLIC_FILES_STORAGE_PATH='/app/public'
- DEFAULT_PROJECT_ID=1
- DEFAULT_PROVIDER_API_KEY=d32da7c2-94fd-49c3-8dca-b57a5c3bbe27
- NEXT_PUBLIC_POSTHOG_KEY=''
- NEXT_PUBLIC_POSTHOG_HOST=''
- DATASET_GENERATOR_DOCUMENT_PATH=generator
- TEMPLATES_SUGGESTION_PROMPT_PATH=evaluation-suggestions
- SUPPORT_APP_ID=''
- SUPPORT_APP_SECRET_KEY=''
depends_on:
- db
- redis
gateway:
build:
platforms:
- 'linux/amd64'
context: .
dockerfile: apps/gateway/docker/Dockerfile
profiles: [building]
environment:
- HOSTNAME=0.0.0.0
- PORT=8081
- NODE_ENV=staging
- DATABASE_URL=postgresql://latitude:secret@db:5432/latitude_development
- QUEUE_PORT=6379
- QUEUE_HOST=redis
- CACHE_PORT=6379
- CACHE_HOST=redis
- LATITUDE_DOMAIN=web:8080
- LATITUDE_URL=http://web:8080
- WEBSOCKETS_SERVER=http://localhost:4002
- WEBSOCKET_SECRET_TOKEN_KEY=secret-token-key
- WEBSOCKET_REFRESH_SECRET_TOKEN_KEY=refresh-refresh-token-key
- WORKERS_WEBSOCKET_SECRET_TOKEN=workers-secret-token
- DRIVE_DISK=local
- FILE_PUBLIC_PATH='uploads'
- FILES_STORAGE_PATH='/app'
- PUBLIC_FILES_STORAGE_PATH='/app/public'
- DEFAULT_PROJECT_ID=1
- DEFAULT_PROVIDER_API_KEY=d32da7c2-94fd-49c3-8dca-b57a5c3bbe27
- NEXT_PUBLIC_POSTHOG_KEY=''
- NEXT_PUBLIC_POSTHOG_HOST=''
- DATASET_GENERATOR_DOCUMENT_PATH=generator
- TEMPLATES_SUGGESTION_PROMPT_PATH=evaluation-suggestions
- GATEWAY_PORT=8081
- GATEWAY_HOSTNAME=gateway
- GATEWAY_SSL=false
ports:
- '8081:8081'
depends_on:
- db
- redis
workers:
build:
platforms:
- 'linux/amd64'
context: .
dockerfile: apps/workers/docker/Dockerfile
profiles: [building]
environment:
- CACHE_HOST=redis
- DATABASE_URL=postgresql://latitude:secret@db:5432/latitude_development
- DEFAULT_PROJECT_ID=1
- DEFAULT_PROVIDER_API_KEY=test
- LATITUDE_DOMAIN=web
- LATITUDE_URL=http://web:8080
- NODE_ENV=staging
- QUEUE_HOST=redis
- WEBSOCKETS_SERVER=websockets
- WEBSOCKET_REFRESH_SECRET_TOKEN_KEY=test
- WEBSOCKET_SECRET_TOKEN_KEY=test
- WORKERS_WEBSOCKET_SECRET_TOKEN=test
- GATEWAY_HOSTNAME=gateway
- NEXT_PUBLIC_POSTHOG_KEY=''
- NEXT_PUBLIC_POSTHOG_HOST=''
depends_on:
- db
- redis