Skip to content
Snippets Groups Projects
Commit f1ac93cb authored by Andres Maldonado's avatar Andres Maldonado
Browse files

[pica-registry-test] Init

parent e2970372
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
FROM registry:2.7
(WIP)
[Docker Registry](https://docs.docker.com/registry/) used by the CI/CD in this repo for image testing.
## Usage
### First time
1. Generate a password in [picapass](https://gitlab.utc.fr/picasoft/interne/pass/)
2. Generate a new `htpasswd` file with `htpasswd -Bn <username>`. This will prompt you for the password and will display results on stdout
3. In the target VM, create `./secrets/htpasswd` and paste there the output of the previous command
version: "3"
volumes:
registry-data:
networks:
docker_default:
external: true
services:
registry:
container_name: registry
restart: always
image: registry:2
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
REGISTRY_STORAGE_DELETE_ENABLED: "true"
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/lib/registry
volumes:
- registry-data:/var/lib/registry
- ./secrets/htpasswd:/auth/htpasswd
labels:
- "traefik.frontend.rule=Host:registry.test.picasoft.net"
- "traefik.port=5000"
- "traefik.enable=true"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment