mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-02-12 15:02:45 +00:00
32 lines
816 B
YAML
32 lines
816 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
deflock:
|
|
image: public.ecr.aws/w2o0b9g0/deflock.me:latest
|
|
expose:
|
|
- 8080
|
|
#restart: always
|
|
stdin_open: true
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
- /etc/letsencrypt:/etc/letsencrypt
|
|
environment:
|
|
- SSL_CERTIFICATE=/etc/letsencrypt/live/deflock.me/fullchain.pem
|
|
- SSL_CERTIFICATE_KEY=/etc/letsencrypt/live/deflock.me/privkey.pem
|
|
restart: always
|
|
|
|
certbot:
|
|
image: certbot/certbot
|
|
environment:
|
|
- CERTBOT_EMAIL
|
|
volumes:
|
|
- /etc/letsencrypt:/etc/letsencrypt
|
|
- /var/lib/letsencrypt:/var/lib/letsencrypt
|
|
command: certonly --webroot -w /var/www/certbot -d deflock.me --email ${CERTBOT_EMAIL} --agree-tos --no-eff-email
|