Switch to Gitea registry
This commit is contained in:
parent
e7261e80b9
commit
5d6d12bce2
|
@ -1,17 +0,0 @@
|
|||
[Unit]
|
||||
Description=Registry (Compose Service)
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/registry
|
||||
ExecStart=/usr/bin/docker-compose --project-name registry up
|
||||
ExecStop=/usr/bin/docker-compose --project-name registry down
|
||||
TimeoutStartSec=0
|
||||
Restart=on-failure
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
version: "3.0"
|
||||
|
||||
services:
|
||||
registry:
|
||||
container_name: registry
|
||||
image: registry:2.8.1
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
REGISTRY_AUTH: htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
||||
REGISTRY_AUTH_HTPASSWD_PATH: /registry.password
|
||||
volumes:
|
||||
- data:/var/lib/registry
|
||||
- ./registry.password:/registry.password
|
||||
ports:
|
||||
- "5000:5000"
|
||||
|
||||
volumes:
|
||||
data:
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
username="${1:?Missing username}"
|
||||
|
||||
docker run --rm -it alpine sh -c "apk add apache2-utils >/dev/null; htpasswd -Bn $username"
|
|
@ -3,7 +3,7 @@ version: "3.0"
|
|||
services:
|
||||
website:
|
||||
container_name: website
|
||||
image: cr.jilits.se/jilits/website:0.2.1
|
||||
image: git.jilits.se/jilits/website:0.2.1
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8000:1313"
|
||||
|
|
Loading…
Reference in New Issue