Skip to content

Commit

Permalink
fixed docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ELHart05 committed Aug 17, 2024
1 parent c55c3f4 commit 73da060
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Empty file added cerbot/.gitkeep
Empty file.
Empty file added cerbot/conf/.gitkeep
Empty file.
Empty file added cerbot/www/.gitkeep
Empty file.
15 changes: 6 additions & 9 deletions deployment/prod/docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ services:
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
volumes:
- ../../conf/nginx.conf:/etc/nginx/nginx.conf
- certbot_conf:/etc/letsencrypt
- certbot_www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
ports:
- "80:80"
- "443:443"
Expand All @@ -27,12 +28,8 @@ services:
image: certbot/certbot
container_name: certbot
volumes:
- certbot_conf:/etc/letsencrypt
- certbot_www:/var/www/certbot
command: certonly -v -n --agree-tos --webroot -w /var/www/certbot --email ${CERTBOT_EMAIL} -d api.cognifile.org
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email ${CERTBOT_EMAIL} -d api.cognifile.org --agree-tos
env_file:
- ../../.env

volumes:
certbot_conf:
certbot_www:

0 comments on commit 73da060

Please sign in to comment.