-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (39 loc) · 844 Bytes
/
docker-compose.yaml
File metadata and controls
41 lines (39 loc) · 844 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.8"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.backend
# Only expose the backend service to other Docker services, not to the host
# ports:
# - "5000:5000"
environment:
- FLASK_ENV=production
- FLASK_APP=app.py
restart: on-failure
logging:
options:
max-size: "10m"
max-file: "3"
networks:
- app-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.frontend
ports:
- "5173:80" # Map Nginx's port 80 to the host's port 5173
depends_on:
- backend
environment:
- NODE_ENV=production
restart: on-failure
logging:
options:
max-size: "10m"
max-file: "3"
networks:
- app-network
networks:
app-network:
driver: bridge