-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) ยท 851 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) ยท 851 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
45
46
version: '3'
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
environment:
- NODE_ENV=production
networks:
- app-network
volumes:
- .:/app
- /app/node_modules
- /app/backend/node_modules
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
networks:
- app-network
volumes:
- .:/app
- /app/node_modules
- /app/frontend/node_modules
depends_on:
- backend
nginx:
image: nginx:alpine
volumes:
- ./frontend/dist:/usr/share/nginx/html
- /etc/letsencrypt:/etc/letsencrypt
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
- "443:443"
depends_on:
- backend
- frontend
networks:
- app-network
networks:
app-network:
driver: bridge