We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c053a42 commit 4599a5eCopy full SHA for 4599a5e
2 files changed
docker-compose.yaml
@@ -7,6 +7,7 @@ services:
7
volumes:
8
- ./settings:/app/settings
9
environment:
10
+ - AUTH_USER=username
11
- AUTH_PASSWORD=yourpasswordhere
12
13
mongo:
docker/entrypoint.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
3
# Generate the .htpasswd file
4
-htpasswd -cb /etc/apache2/.htpasswd user "$AUTH_PASSWORD"
+htpasswd -cb /etc/apache2/.htpasswd "$AUTH_USER" "$AUTH_PASSWORD"
5
6
# Start Apache in the foreground
exec apachectl -D FOREGROUND
0 commit comments