forked from Metaculus/metaculus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (41 loc) · 1.06 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
version: '3.8'
services:
db:
image: pgvector/pgvector:pg16
environment:
POSTGRES_DB: metaculus
POSTGRES_USER: metaculus_user
POSTGRES_PASSWORD: metaculus_password
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
ports:
- "5432:5432"
redis:
image: redis:latest
ports:
- "6379:6379"
app:
build:
context: .
dockerfile: Dockerfile
environment:
POSTGRES_DB: metaculus
POSTGRES_USER: metaculus_user
POSTGRES_PASSWORD: metaculus_password
POSTGRES_HOST: db
# for use w/ https://pypi.org/project/dj-database-url/
DATABASE_URL: postgres://metaculus_user:metaculus_password@db:5432/metaculus
REDIS_URL: redis://redis:6379
# frontend?
NEXT_PUBLIC_APP_URL: http://localhost
NEXT_PUBLIC_API_BASE_URL: http://127.0.0.1:8000
#NEXT_PUBLIC_TURNSTILE_SITE_KEY=key
ports:
- "8000:8000"
- "3000:3000"
depends_on:
- db
- redis
volumes:
postgres_data: