@@ -63,18 +63,19 @@ Get up and running in minutes with our automated installer that configures every
6363
64643 . Configure Let's Encrypt for SSL certificates:
6565 ``` bash
66- docker compose run --rm manager shtool setup_letsencrypt < domain> < email> [traefik_username] [traefik_password]
66+ docker compose run --rm manager shtool setup_letsencrypt < domain> < email> [traefik_username] [traefik_password] [environment]
6767 ```
6868
6969 Parameters:
7070 - ` <domain> ` : Your domain name (required)
7171 - ` <email> ` : Email for Let's Encrypt notifications (required)
7272 - ` [username] ` : Admin username (optional, defaults to "admin")
7373 - ` [password] ` : Admin password (optional, auto-generated if not specified)
74+ - ` [environment] ` : Environment type - "prod" or "dev" (optional, defaults to "prod")
7475
7576 Example:
7677 ``` bash
77- docker compose run --rm manager shtool setup_letsencrypt example.com admin@example.com myadmin mysecurepass
78+ docker compose run --rm manager shtool setup_letsencrypt example.com admin@example.com myadmin mysecurepass prod
7879 ```
7980 Note: If password is omitted, a secure random password will be generated.
8081
@@ -99,6 +100,24 @@ Get up and running in minutes with our automated installer that configures every
99100 docker compose up -d
100101 ```
101102
103+ ## Environment Configuration
104+
105+ SelfHostYour.Tech supports two deployment environments:
106+
107+ ### Production Environment (prod)
108+ - ** HTTPS enabled** : All services use SSL/TLS certificates from Let's Encrypt
109+ - ** Secure redirects** : HTTP traffic is automatically redirected to HTTPS
110+ - ** Full SSL validation** : Complete certificate chain validation
111+ - ** Recommended for** : Live deployments, production use
112+
113+ ### Development Environment (dev)
114+ - ** HTTP only** : Services run without SSL certificates
115+ - ** No redirects** : Direct HTTP access without HTTPS enforcement
116+ - ** Local development** : Suitable for localhost testing
117+ - ** Recommended for** : Testing, development, local setups
118+
119+ The environment is configured during the ` setup_letsencrypt ` step and affects all services automatically.
120+
102121## Starting/Stopping/Status Services
103122
104123``` bash
@@ -107,6 +126,7 @@ docker compose exec -ti manager shtool stop
107126docker compose exec -ti manager shtool start < service>
108127docker compose exec -ti manager shtool stop < service>
109128docker compose exec -ti manager shtool status
129+ docker compose exec -ti manager shtool reload
110130```
111131
112132## Managing Services by Docker Compose wrapper
@@ -123,6 +143,64 @@ Examples:
123143- Start a service: ` docker compose run --rm manager shtool manage nextcloud up -d `
124144- View logs: ` docker compose run --rm manager shtool manage ghost logs -f `
125145
146+ ## Deployment Management
147+
148+ ### Deploy Individual Services
149+
150+ Deploy or redeploy a specific service:
151+ ``` bash
152+ docker compose run --rm manager shtool deploy < service_name> [force_rebuild]
153+ docker compose run --rm manager shtool redeploy < service_name> [force_rebuild]
154+ ```
155+
156+ Examples:
157+ ``` bash
158+ # Deploy Nextcloud
159+ docker compose run --rm manager shtool deploy nextcloud
160+
161+ # Redeploy with forced rebuild
162+ docker compose run --rm manager shtool redeploy nextcloud true
163+ ```
164+
165+ ### Deploy All Services
166+
167+ Redeploy all enabled services:
168+ ``` bash
169+ docker compose run --rm manager shtool redeploy_all [force_rebuild]
170+ ```
171+
172+ Example:
173+ ``` bash
174+ # Redeploy all services with forced rebuild
175+ docker compose run --rm manager shtool redeploy_all true
176+ ```
177+
178+ ## Data Management and Cleanup
179+
180+ ### Clean All Data
181+ ** ⚠️ WARNING: This will permanently delete ALL data**
182+
183+ ``` bash
184+ docker compose run --rm manager shtool clean
185+ ```
186+
187+ This command will:
188+ - Stop all services
189+ - Remove all Docker volumes
190+ - Require confirmation with a randomly generated code
191+
192+ ### Clean Individual Service Data
193+ ** ⚠️ WARNING: This will permanently delete data for the specified service**
194+
195+ ``` bash
196+ docker compose run --rm manager shtool clean_app < service_name>
197+ ```
198+
199+ Example:
200+ ``` bash
201+ docker compose run --rm manager shtool clean_app nextcloud
202+ ```
203+
126204### Application Configuration
127205
128206Configure all applications at once:
@@ -227,6 +305,19 @@ The following services are in development or planned for future releases:
227305- ** SSL certificate problems** : Run ` docker compose run --rm manager shtool setup_letsencrypt ` again
228306- ** Incorrect credentials** : Reconfigure application settings with ` docker compose run --rm manager shtool configure_app_settings `
229307- ** Configuration issues** : Check application-specific configuration files in the service directory
308+ - ** Environment mismatch** : Ensure your environment (prod/dev) is correctly configured
309+
310+ ### Environment-Specific Issues
311+
312+ ** Production Environment:**
313+ - Verify domain DNS is pointing to your server
314+ - Ensure ports 80 and 443 are open and accessible
315+ - Check Let's Encrypt certificate generation in Traefik logs
316+
317+ ** Development Environment:**
318+ - Services will be accessible via HTTP only
319+ - Use ` localhost ` or your local IP address
320+ - No SSL certificates required
230321
231322## Best Practices
232323
@@ -235,6 +326,8 @@ The following services are in development or planned for future releases:
2353263 . Monitor system resources to ensure adequate capacity
2363274 . Implement proper security measures and network isolation
2373285 . Set up monitoring for critical services
329+ 6 . Use production environment for live deployments
330+ 7 . Test changes in development environment first
238331
239332## Support and Community
240333
0 commit comments