-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 875 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 875 Bytes
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
services:
db:
image: postgres:16
container_name: emotrack-db
environment:
POSTGRES_DB: emotrack
POSTGRES_USER: emotrack
POSTGRES_PASSWORD: emotrack
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- '5432:5432'
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: emotrack-backend
environment:
DATABASE_URL: postgresql+psycopg2://emotrack:emotrack@db:5432/emotrack
SECRET_KEY: vU@cfNMm5APQh9w
ALGORITHM: HS256
ACCESS_TOKEN_EXPIRE_MINUTES: '30'
depends_on:
- db
ports:
- '8000:8000'
volumes:
- uploads:/app/uploads
frontend:
build:
context: .
dockerfile: Dockerfile.front
container_name: emotrack-frontend
depends_on:
- backend
ports:
- '8080:80'
volumes:
pgdata:
uploads: