-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (36 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (36 loc) · 815 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
version: '3.7'
services:
backend:
build: ./backend
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
volumes:
- ./backend/:/app/
environment:
- DATABASE_URI=postgresql://db_username:db_password@db/db_dev
frontend:
build: ./frontend
ports:
- "8001:3000"
depends_on:
- db
db:
image: postgres:latest
volumes:
- postgres_data_db:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=db_username
- POSTGRES_PASSWORD=db_password
- POSTGRES_DB=db_dev
logging:
driver: none
nginx:
image: nginx:latest
ports:
- "8080:8080"
volumes:
- ./nginx_config.conf:/etc/nginx/conf.d/default.conf
depends_on:
- frontend
- backend
volumes:
postgres_data_db: