diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 248cc83..3502e20 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -63,7 +63,6 @@ services: HOST: 0.0.0.0 NODE_ENV: production - # Default JWT secret - CHANGE THIS in production! JWT_SECRET: ${JWT_SECRET:-taskerra-default-jwt-secret-please-change-in-production-min-32-characters} JWT_EXPIRES_IN: ${JWT_EXPIRES_IN:-7d} @@ -124,26 +123,24 @@ services: dockerfile: apps/web/Dockerfile args: # Production API URL - VITE_API_URL: ${VITE_API_URL:-https://api.taskerra.com} + VITE_API_URL: ${VITE_API_URL:-https://taskerra.divyanshusoni.com} container_name: taskerra-web-prod environment: - # VITE_API_URL: ${VITE_API_URL:-https://api.taskerra.com} - VITE_API_URL: https://taskerra.divyanshusoni.com + VITE_API_URL: ${VITE_API_URL:-https://taskerra.divyanshusoni.com} ports: - "80:80" - "443:443" - # For HTTPS (need to configure SSL in nginx) - # - "443:443" volumes: - # Mount SSL certificates - - /etc/letsencrypt/live/taskerra.divyanshusoni.com:/etc/letsencrypt/live/taskerra.divyanshusoni.com:ro - - /etc/letsencrypt/archive/taskerra.divyanshusoni.com:/etc/letsencrypt/archive/taskerra.divyanshusoni.com:ro - # Mount new nginx config - - ./apps/web/nginx-ssl.conf:/etc/nginx/conf.d/default.conf:ro + # Mount SSL certificates (optional - nginx will work without them on HTTP) + # Created these on EC2 with: sudo certbot certonly --standalone -d taskerra.divyanshusoni.com + - /etc/letsencrypt/live/taskerra.divyanshusoni.com/fullchain.pem:/etc/nginx/ssl/fullchain.pem:ro + - /etc/letsencrypt/live/taskerra.divyanshusoni.com/privkey.pem:/etc/nginx/ssl/privkey.pem:ro + # Mount nginx config + - ./apps/web/nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: backend: