-
Notifications
You must be signed in to change notification settings - Fork 268
/
docker-compose.yml
73 lines (71 loc) · 2.23 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
services:
postgres:
image: postgres:16
container_name: hostedgpt_postgres
restart: always
environment:
# NOTE: This Docker compose is intended for development. It does NOT support DATABASE_URL.
- POSTGRES_USER=${HOSTED_DB_USERNAME:-app}
- POSTGRES_PASSWORD=${HOSTED_DB_PASSWORD:-secret}
- POSTGRES_DB=${HOSTED_DB_NAME:-app}_development
volumes:
- hostedgpt_pgdata:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
interval: 1s
retries: 5
base: &base
container_name: hostedgpt
depends_on: ["postgres"]
restart: on-failure:3
tty: true
build:
context: .
target: development
environment:
# Be sure to add environment variables to config/options.yml
- HOSTED_DB_USERNAME=${HOSTED_DB_USERNAME:-app}
- HOSTED_DB_PASSWORD=${HOSTED_DB_PASSWORD:-secret}
- HOSTED_DB_HOST=${HOSTED_DB_HOST:-postgres}
- HOSTED_DB_PORT=${HOSTED_DB_PORT:-5432}
- HOSTED_DB_NAME=${HOSTED_DB_NAME:-app}
# NOTE: Using DATABASE_URL to configure db is NOT supported by this Docker compose
- APP_URL_PROTOCOL
- APP_URL_HOST
- APP_URL_PORT
- DEV_HOST=${DEV_HOST:-localhost} # Set if you want to use a different hostname
- OVERMIND_COLORS=2,3,5
- ALLOWED_REQUEST_ORIGINS
- REGISTRATION_FEATURE
- DEFAULT_LLM_KEYS_FEATURE
- CLOUDFLARE_STORAGE_FEATURE
- GOOGLE_TOOLS_FEATURE
- PASSWORD_AUTHENTICATION_FEATURE
- GOOGLE_AUTHENTICATION_FEATURE
- HTTP_HEADER_AUTHENTICATION_FEATURE
- VOICE_FEATURE
- DEFAULT_TO_VOICE_FEATURE
- EMAIL_FEATURE
- PASSWORD_RESET_EMAIL_FEATURE
- PRODUCT_NAME
- DEFAULT_OPENAI_KEY
- DEFAULT_ANTHROPIC_KEY
- DEFAULT_GROQ_KEY
- CLOUDFLARE_ACCOUNT_ID
- CLOUDFLARE_ACCESS_KEY_ID
- CLOUDFLARE_SECRET_ACCESS_KEY
- CLOUDFLARE_BUCKET
- GOOGLE_AUTH_CLIENT_ID
- GOOGLE_AUTH_CLIENT_SECRET
- HTTP_HEADER_AUTH_EMAIL
- HTTP_HEADER_AUTH_NAME
- HTTP_HEADER_AUTH_UID
- EMAIL_PROVIDER
- EMAIL_FROM
- EMAIL_HOST
- POSTMARK_SERVER_API_TOKEN
ports: ["3000:3000"]
volumes:
- .:/rails
volumes:
hostedgpt_pgdata: