Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic private docker registry #299

Merged
merged 2 commits into from
Sep 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/classic-cloud/distribution/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @alwatr/distribution Classic private docker registry
43 changes: 43 additions & 0 deletions packages/classic-cloud/distribution/compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
networks:
internal:
alwatr-public-network:
name: alwatr-public-network
external: true

services:
distribution:
image: ${DISTRIBUTION_IMAGE:-registry:2}

networks:
- alwatr-public-network

restart: unless-stopped

cpu_shares: 1024
mem_limit: ${MEMORY_LIMIT:-256m}

env_file: .env

volumes:
- type: bind
source: ./_data/
target: /var/lib/registry
bind:
create_host_path: true

# tmpfs:
# - /var/cache

logging:
driver: json-file
options:
max-size: '10m'
max-file: '2'

labels:
traefik.enable: true
traefik.port: 5000
traefik.frontend.rule: Host:${DOMAIN}
traefik.frontend.entryPoints: http, https
traefik.frontend.redirect.entryPoint: https
traefik.frontend.auth.basic.users: ${AUTH}
2 changes: 2 additions & 0 deletions packages/classic-cloud/distribution/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
U2FsdGVkX19QDj1532rpraR4qFHgC7vxIeTZSW7yrrejYlrH1iwzAj28Iy+CzhT/
4uqBo3z1ZFTOe+ZtuT2FLg==
7 changes: 7 additions & 0 deletions packages/classic-cloud/distribution/env/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
U2FsdGVkX18bUakmW9UTSWlEtIe3/MnR4M6vcvPj5x+lzBySPZ66rBgxZf6/f1/i
1tKRiwI//Bka7NJAls2sx5IJdBE6hK3SPtwcx/JxMWLVUPkyUyrSrlb97Z0Jyf6o
qA/dtSDvMIYIon3HwhClBJNMfE7f/XGdimwdZBA2i/oZGMzdukohHWl+kWn7OAAb
LF8LfhsWJ+Tx6jy5bYf6BHgIuhORnlo3jqCZRHLYCETyM7s3Wmsp05PxykIatGBv
aCbH76DJMerNToFXThV4B41sRkQ6JKI4/hMUa3TvS6Noy5hWyrCffArdNCKUk+64
lHRFCdqRA+q+gH3T5Nw2uLsVJBS/MtQmOruhf0Gwi2WsO920/VkvvaEX7Hu/h01M
7OfWDTAGy4oBmgyEVADwtw==
2 changes: 1 addition & 1 deletion packages/classic-cloud/php-apache/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION=8.1
ARG IMAGE_NAME=docker.io/php:${PHP_VERSION}-apache
ARG IMAGE_NAME=docker.io/library/php:${PHP_VERSION}-apache

FROM $IMAGE_NAME

Expand Down
4 changes: 2 additions & 2 deletions packages/classic-cloud/traefik-proxy/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ networks:

services:
service-proxy:
image: ${TRAEFIK_IMAGE:-docker.io/traefik:v1.7-alpine}
image: ${TRAEFIK_IMAGE:-docker.io/library/traefik:v1.7-alpine}

networks:
- alwatr-public-network

restart: unless-stopped

cpu_shares: 4096
mem_limit: 256m
mem_limit: ${MEMORY_LIMIT:-256m}

logging:
driver: json-file
Expand Down
12 changes: 6 additions & 6 deletions packages/classic-cloud/traefik-proxy/env/example.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
U2FsdGVkX1+AZj/4n2LY54dob5qDJxhrn1IpqNa9QhM7tDkIxbbyg7ljz9iIVWjv
4fsn0p8CUYV5LJqtZ/ev1rXOcBtuvqOEYZy7h6G9Ey75PK6r1ljMUr3VXqCu6KrC
ybdKGE9eE1w8UGbcOuqvFW2gC7CiIRwJXQ1j7pCXIHjwdGz8OqWGVPNnvXb3//w4
sU72HhqYann/HZPnX4dk1+Oqx0dDtYzO4kSRwod0P7jyGkoHnGyHq66rsUvkZryf
21ysBjcap5VO2JK3zuz2RqIyLmRXhYSh3zWXXyNIiICg2gXxTdxoCdLiy+7zu7ea
DBuoHvCq5UstUw8TzyIzTU9jBvU4u9i1BnUFpV6IWk8=
U2FsdGVkX1+0pmRjy5GIsXnJ1MvGorp5bFI30jNmvuxDKM+3VWkXaEZVk3KBp4I5
08ZVe/ZlrGyTjfdI06vbwLko47rQ1Opyt6NLmcjziSfwR1g5tD4jsz46Snn3HRrY
G9tFr63oqpXU6vJpMsUzTSCp0v54e61PkIRo9fYzn5h9BIFT/Nc8aG5yJt6NIZWc
DoRmFzggn0SQmXZssMlSwAccbA6XapM5U4l3kvpOxgRY736a6uxz1MFMwlC+PMJ4
XWYBydPrFepvGIQclPXY+wQBDM2PMXE0Ilhj4qGrQxEmXpEPtNNZ0NlkzYnIsQJT
RUa1ZysyxtVSkCINPOIIZLp+d98snEnJX5D7YC5H1eY=
2 changes: 1 addition & 1 deletion packages/classic-cloud/wordpress/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG NGINX_VERSION=1.23

FROM docker.io/nginx:${NGINX_VERSION}-alpine
FROM docker.io/library/nginx:${NGINX_VERSION}-alpine

COPY toggle-cache.html /var/www/
COPY conf.d/ /etc/nginx/conf.d/
Expand Down
2 changes: 1 addition & 1 deletion packages/container/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ALPINE_VERSION=3.16
FROM docker.io/alpine:${ALPINE_VERSION}
FROM docker.io/library/alpine:${ALPINE_VERSION}

ARG APK_TESTING
RUN set -ex; \
Expand Down
2 changes: 1 addition & 1 deletion packages/container/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG NGINX_VERSION=1.23
ARG NGINX_IMAGE=docker.io/nginx:${NGINX_VERSION}-alpine
ARG NGINX_IMAGE=docker.io/library/nginx:${NGINX_VERSION}-alpine

FROM $NGINX_IMAGE

Expand Down