-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (44 loc) · 1.23 KB
/
docker-compose.yaml
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
version: "3.9"
services:
database:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: verySecretPassword
POSTGRES_USER: administrator
POSTGRES_DB: studyoracledb
app:
build:
context: .
dockerfile: Dockerfile.server.dev
restart: always
volumes:
- ./server:/app/server
- ./credentials:/root/.aws/credentials
environment:
OPENAI_API_KEY: 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
SQLALCHEMY_DATABASE_URI: postgresql://administrator:verySecretPassword@database:5432/studyoracledb
CELERY_BROKER_URL: redis://redis:6379/
CELERY_RESULT_BACKEND: redis://redis:6379/
ports:
- "8080:8080"
# for local testing only
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
worker:
build:
context: .
dockerfile: Dockerfile.worker.dev
restart: always
volumes:
- ./server:/app/server
- ./scripts:/app/scripts
- ./credentials:/root/.aws/credentials
environment:
OPENAI_API_KEY: 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
CELERY_BROKER_URL: redis://redis:6379/
CELERY_RESULT_BACKEND: redis://redis:6379/
C_FORCE_ROOT: "true"