-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 789 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 789 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
version: '2'
services:
spring-app:
image: van133/streaming:latest
container_name: streaming
ports:
- "8080:8080"
volumes:
- tmp:/tmp
# restart: unless-stopped
nginx-rtmp:
image: van133/nginx-rtmp:ssl
ports:
- "1935:1935"
- "80:80"
- "443:443"
volumes:
- tmp:/tmp
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./conf/nginx.conf:/etc/nginx/conf.d/default.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
tmp: