forked from rahulapjs/SemanticFeed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 1.02 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
version: '3.8'
services:
db:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER:-user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_DB:-semanticdb}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
backend:
build: ./backend
restart: always
ports:
- "8000:8000"
environment:
# Pass these individually so the app can construct the URL, or pass DATABASE_URL directly
# We'll pass the components to match the new config.py logic when running in compose
POSTGRES_USER: ${POSTGRES_USER:-user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_SERVER: db
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB:-semanticdb}
GOOGLE_API_KEY: ${GOOGLE_API_KEY}
depends_on:
- db
frontend:
build: ./frontend
restart: always
ports:
- "80:80"
depends_on:
- backend
volumes:
postgres_data: