-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.17 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
version: '3.8'
services:
backend:
image: spravinkumar9952/streamer:v5.2
container_name: backend-app
ports:
- "9999:9999"
- "9998:9998"
env_file:
- ./backend/.env
restart: unless-stopped
working_dir: /app
command: ["npm", "run", "start:all"]
frontend:
image: spravinkumar9952/streamer-frontend:v7.1
container_name: frontend-app
expose:
- "80" # Optional: expose separately if needed
- "443"
env_file:
- ./frontend/.env
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
restart: unless-stopped
nginx:
image: nginx:alpine
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- frontend
- backend
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
entrypoint: "/bin/sh -c"
command: >
"trap exit TERM; while :; do sleep 1; done"