-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 989 Bytes
/
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
version: '3'
services:
nodejs:
image: ghcr.io/flyoozes/artysed:latest
container_name: nodejs
networks:
- app-network
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- web-root:/var/www/html
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- ./dhparam:/etc/ssl/certs
depends_on:
- nodejs
networks:
- app-network
certbot:
image: certbot/certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
depends_on:
- nginx
command: certonly --webroot --webroot-path=/var/www/html --email artysed@gmail.com --agree-tos --no-eff-email --force-renewal -d artysed.com -d www.artysed.com
volumes:
certbot-etc:
certbot-var:
web-root:
driver: local
networks:
app-network:
driver: bridge