Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
91a9dcd2
Commit
91a9dcd2
authored
4 years ago
by
Quentin Duchemin
Browse files
Options
Downloads
Patches
Plain Diff
[Registry] Use .secrets extension for auth file
parent
bc4ce6c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pica-registry/README.md
+1
-1
1 addition, 1 deletion
pica-registry/README.md
pica-registry/docker-compose.yml
+7
-5
7 additions, 5 deletions
pica-registry/docker-compose.yml
with
8 additions
and
6 deletions
pica-registry/README.md
+
1
−
1
View file @
91a9dcd2
...
...
@@ -7,7 +7,7 @@ Il est accessible via HTTPS, donc par Traefik, et ne nécessite donc pas la cré
### Configuration
Les utilisateurs autorisés à accéder au registre sont configurés dans le fichier
`auth`
.
Les utilisateurs autorisés à accéder au registre sont configurés dans le fichier
`auth
.secrets
`
.
Le format est le suivant : un utilisateur par ligne,
`<user>:<encrypted_password>`
.
Pour plus de facilité, on peut lancer la commande suivante pour créer un nouvel utilisateur :
...
...
This diff is collapsed.
Click to expand it.
pica-registry/docker-compose.yml
+
7
−
5
View file @
91a9dcd2
...
...
@@ -10,7 +10,6 @@ volumes:
services
:
registry
:
restart
:
always
image
:
registry:2
container_name
:
registry
environment
:
...
...
@@ -18,10 +17,13 @@ services:
REGISTRY_AUTH_HTPASSWD_PATH
:
/auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM
:
Registry Realm
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
:
/var/lib/registry
networks
:
-
docker_default
volumes
:
-
registry:/var/lib/registry
-
./auth
:/auth
-
./auth
.secrets:/auth/htpasswd
labels
:
-
"
traefik.frontend.rule=Host:registry.picasoft.net"
-
"
traefik.port=5000"
-
"
traefik.enable=true"
traefik.frontend.rule
:
Host:registry.picasoft.net
traefik.port
:
5000
traefik.enable
:
true
restart
:
unless-stopped
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment