-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
34 lines (31 loc) · 815 Bytes
/
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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: video-compression-backend
hostname: frontend_container
ports:
- "3000" # Maps host port 3000 to container port 3000
environment:
NODE_ENV: production
command: ["node", "app.js"]
networks:
- video_compression_network
nginx:
image: nginx:latest
container_name: nginx-proxy
depends_on:
- app
ports:
- "80:80" # HTTP port
- "443:443" # HTTPS port
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro # Mounts the Nginx configuration
- /etc/letsencrypt:/etc/letsencrypt:ro # Mounts Let's Encrypt certificates
networks:
- video_compression_network
networks:
video_compression_network:
driver: bridge