-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (41 loc) · 968 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (41 loc) · 968 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
44
services:
portfolio_db:
image: postgres:17
volumes:
- portforlio_data:/var/lib/postgresql/data/
env_file: "backend/.env"
ports:
- '5432:5432'
portfolio_redis:
image: redis:latest
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
depends_on:
- portfolio_db
portfolio_web:
build: backend
command: gunicorn backend.asgi:application --bind 0.0.0.0:8000 -k uvicorn.workers.UvicornWorker
volumes:
- ./backend:/backend/
env_file: "backend/.env"
expose:
- 8000
depends_on:
- portfolio_db
- portfolio_redis
portfolio_nginx:
build: nginx
volumes:
- ./backend/staticapi:/backend/staticapi/
- ./backend/media:/backend/media/
- ./frontend/build:/usr/share/nginx/html
ports:
- "80:80"
- "443:443"
depends_on:
- portfolio_web
volumes:
portforlio_data:
staticfiles: