-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
49 lines (45 loc) · 1.22 KB
/
docker-compose.prod.yaml
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
version: "3.9"
services:
next-app:
container_name: next-app
image: raghuboi/portfolio-website-v2:main
env_file:
- .env.production
restart: always
labels:
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
container_name: watchtower
image: containrrr/watchtower
command: --label-enable --http-api-update
environment:
WATCHTOWER_CLEANUP: true
WATCHTOWER_REMOVE_VOLUMES: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8000:8080
restart: always
nginx:
container_name: nginx
image: nginx
ports:
- 80:80
- 443:443
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/certbot/conf:/etc/letsencrypt:ro
- ./nginx/certbot/www:/var/www/certbot:ro
restart: always
certbot:
container_name: certbot
image: certbot/certbot:latest
depends_on:
- nginx
command: >-
certonly --reinstall --webroot --webroot-path=/var/www/certbot
--email [email protected] --agree-tos --no-eff-email
-d dev.raghunathprabhakar.com
volumes:
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot