-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.48 KB
/
docker-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
services:
mainapp:
container_name: node
build: ./
ports:
- "5000:5000"
webserver:
container_name: nginx
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./build:/var/www/html
- ./default.conf:/etc/nginx/conf.d/default.conf
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
depends_on:
- webserver
command: certonly --webroot --webroot-path=/var/www/html --email devansh.forlife@gmail.com --agree-tos --no-eff-email --staging -d foodeazy.devforlife07.codes -d www.foodeazy.devforlife07.codes
# letsencrypt-nginx-container:
# container_name: 'letsencrypt-nginx-container'
# image: nginx:latest
# ports:
# - "80:80"
# volumes:
# - ./default.conf:/etc/nginx/conf.d/default.conf
# - ./build:/var/www/html
# depends_on:
# - mainapp
networks:
docker-network:
driver: bridge
volumes:
certbot-etc:
certbot-var:
web-root:
driver: local
driver_opts:
type: none
device: C:\Users\Devansh\Desktop\foodeazy2
o: bind