You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,20 @@
1
-
# Build with bake
1
+
# Docker registry proxy
2
+
3
+
## Build with bake
4
+
2
5
```bash
3
6
docker buildx bake --file docker-bake.hcl
4
7
```
5
8
6
-
# Create .env file
9
+
## Create .env file
10
+
7
11
```bash
8
12
cp .env.sample .env
9
13
vim .env
10
14
```
11
15
12
-
# Run with docker
16
+
## Run with docker
17
+
13
18
```bash
14
19
docker run --name openresty_docker_registry_proxy \
15
20
--rm -it \
@@ -20,28 +25,33 @@ docker run --name openresty_docker_registry_proxy \
20
25
docker-registry-proxy-cache:latest
21
26
```
22
27
23
-
# Run with docker compose
28
+
## Run with docker compose
29
+
24
30
```bash
25
31
docker compose up
26
32
```
27
33
28
34
The `HTPASSWD` environment variable activates basic authentication. In this example, we define two users:
29
-
* user1:user1
30
-
* user2:user2
35
+
36
+
* user1:password1
37
+
* user2:password2
31
38
32
39
The `HTPASSWD_DELIMITER` environment variable can be used to specify a custom delimiter. By default, a `space` is used.
33
40
34
41
By default, `generate-certificate.sh` generates a self-signed certificate. You can override this by mounting a volume with your own certificates at `/certs`.
0 commit comments