-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 978 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
41
42
43
44
45
46
47
version: '3.8'
services:
backend:
build:
dockerfile: ./compose/backend/Dockerfile
context: .
command: bash -c "alembic upgrade head && uvicorn --port 8000 --host 0.0.0.0 app.main:app"
env_file:
- .env
ports:
- 127.0.0.1:8000:8000
volumes:
- ./data:/data
depends_on:
- db
db:
image: postgres:14
env_file:
- .env
ports:
- "5432:5432"
volumes:
- ./db:/var/lib/postgresql/data
# frontend:
# build:
# dockerfile: ./compose/frontend/Dockerfile
# context: .
# restart: unless-stopped
nginx:
build:
dockerfile: ./compose/nginx/Dockerfile
context: .
restart: unless-stopped
depends_on:
- backend
# - frontend
ports:
- 127.0.0.1:${HTTP_PORT}:80
volumes:
- ./mounts/uwsgi:/uwsgi
- ./mounts/logs/nginx:/var/log/nginx
- ./mounts/media:/webapp/media:ro
- ./mounts/static:/webapp/static:ro