-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 968 Bytes
/
docker-compose.yml
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
version: "3.8"
services:
database:
image: postgres:13.11
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=db_pass
- POSTGRES_USER=db_user
- POSTGRES_DB=movie_database_db
frontend:
build:
context: ./frontend
args:
- NEXT_PUBLIC_API_URL=http://localhost:8000
- NEXT_PUBLIC_CDN_URL=http://localhost:8000/uploads/
ports:
- 3000:3000
backend:
build: ./backend
volumes:
- backend:/backend/uploads
environment:
- PORT=3001
- JWT_SECRET=6Zb2DpBzDZNt1SCIOG2ehHpr,tYs+8q9jG+w725vF-EMS6BrUqc9MYHE=u-asxI7
- JWT_EXPIRATION=31536000
- DATABASE_DIALECT=postgres
- DATABASE_HOST=172.17.0.1
- DATABASE_PORT=5432
- DATABASE_USER=db_user
- DATABASE_PASSWORD=db_pass
- DATABASE_NAME=movie_database_db
ports:
- 8000:3001
volumes:
backend:
postgres_data: