-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
61 lines (56 loc) · 1.19 KB
/
docker-compose.dev.yml
File metadata and controls
61 lines (56 loc) · 1.19 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.8"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: next_frontend
environment:
- NODE_ENV=production
- NEXT_PUBLIC_HOST_NAME=localhost:8080
- INTERNAL_API_URL=nginx:80
expose:
- "3000"
networks:
- app_network
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: fastapi_backend_dev
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
working_dir: /app/app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./backend:/app
networks:
- app_network
restart: unless-stopped
redis:
image: redis:8-alpine
container_name: redis_dev
ports:
- "6379:6379"
networks:
- app_network
restart: unless-stopped
nginx:
image: nginx:alpine
container_name: nginx_dev
ports:
- "8080:80"
volumes:
- ./nginx/nginx.dev.conf:/etc/nginx/conf.d/default.conf
depends_on:
- frontend
- backend
networks:
- app_network
restart: unless-stopped
networks:
app_network:
driver: bridge