-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.04 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
version: '3.9'
services:
db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_DB: phaemos
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- '6379:6379'
backend:
build: ./backend
restart: unless-stopped
ports:
- '8000:8000'
environment:
DATABASE_URL: postgresql://postgres:password@db:5432/phaemos
REDIS_URL: redis://redis:6379
SECRET_KEY: change_this_in_production
ALGORITHM: HS256
ACCESS_TOKEN_EXPIRE_MINUTES: 60
ALLOWED_ORIGINS: http://localhost:3000
ENVIRONMENT: development
depends_on:
- db
- redis
volumes:
- ./backend:/app
frontend:
build: ./frontend
restart: unless-stopped
ports:
- '3000:3000'
environment:
NEXT_PUBLIC_API_URL: http://localhost:8000
depends_on:
- backend
volumes:
postgres_data: