-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
63 lines (60 loc) · 1.45 KB
/
compose.dev.yaml
File metadata and controls
63 lines (60 loc) · 1.45 KB
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
services:
app:
extends:
file: compose.yaml
service: app
env_file:
- .env
environment:
ASK_TOKEN: asktoken
FLASK_APP: app.py
FLASK_ENV: development # Set Flask environment to development
FLASK_DEBUG: 1 # Enable debug mode
REBUILD_TOKEN: rebuildtoken
SECRET_KEY: supersecret
SEGMENT_WRITE_KEY: ${SEGMENT_WRITE_KEY} # Set your Segment write key here or in the .env file
SESSION_COOKIE_SECURE: 0
OPENAI_BASE_URL: "http://llm:5051/api/v1"
volumes:
- type: bind
source: ./app
target: /app
command: flask run --host=0.0.0.0 --port=5050
redis:
extends:
file: compose.yaml
service: redis
llm:
extends:
file: compose.yaml
service: llm
env_file:
- .env
ports:
- target: 5051
published: 5051
protocol: tcp
mode: ingress
environment:
# - AWS_REGION=us-west-2
# - AWS_PROFILE=defang-lab
- DEBUG=true
# - GCP_PROJECT_ID=jordan-project-463223
# - GOOGLE_CLOUD_PROJECT=jordan-project-463223
# - GCP_REGION=us-central1
# - PROVIDER=gcp
- PORT=5051
volumes:
- type: bind
source: ~/.aws
target: /root/.aws
- type: bind
source: ~/.config/gcloud
target: /root/.config/gcloud
discord-bot:
restart: "no"
extends:
file: compose.yaml
service: discord-bot
env_file:
- .env