Skip to content

Commit 8fcca7a

Browse files
committedMar 25, 2023
Bump containers and add ARM64 builds
1 parent 5be73bc commit 8fcca7a

File tree

8 files changed

+35
-65
lines changed

8 files changed

+35
-65
lines changed
 

‎.env

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dbUserPass=changemetoo
66

77
domain=localhost
88

9-
#use echo $(htpasswd -nb username password) to generate the the creds
10-
dashboardcreds=user:$apr1$MexAolZ7$qu78x6Ljq4AZjYCqgiyGn.
11-
db_access_creds=user:$apr1$MexAolZ7$qu78x6Ljq4AZjYCqgiyGn.
9+
#use echo $(htpasswd -nb username password) to generate the the creds, Use double dollar signs because of escaping
10+
dashboardcreds=user:$$apr1$$MexAolZ7$$qu78x6Ljq4AZjYCqgiyGn.
11+
db_access_creds=user:$$apr1$$MexAolZ7$$qu78x6Ljq4AZjYCqgiyGn.
1212
#db_access_creds is a http layer in front of adminer, so you need 2 layers of authentication before accessing the db
1313

1414
acme_email=hello@example.com

‎.github/workflows/docker-publish.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
61
name: Create and publish a Docker image
72

83
on:
@@ -39,10 +34,18 @@ jobs:
3934
with:
4035
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4136

42-
- name: Build and push Docker image
43-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
37+
- name: Set up QEMU
38+
uses: docker/setup-qemu-action@v2
39+
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v2
42+
43+
- name: Build and push
44+
uses: docker/build-push-action@v4
4445
with:
4546
context: .
4647
push: true
48+
platforms: linux/amd64,linux/arm64
49+
provenance: false #workaround for github UI bug see https://github.com/orgs/community/discussions/45969
4750
tags: ${{ steps.meta.outputs.tags }}
4851
labels: ${{ steps.meta.outputs.labels }}

‎.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ letsencrypt
44
node_modules
55
.parcel-cache
66
.cache
7-
dist
7+
dist
8+
private.pem
9+
public.pem

‎config/key.rsa

-27
This file was deleted.

‎config/key.rsa.pub

-9
This file was deleted.

‎dist/.env

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dbUserPass=changemetoo
66

77
domain=localhost
88

9-
#use echo $(htpasswd -nb username password) to generate the the creds
10-
dashboardcreds=user:$apr1$MexAolZ7$qu78x6Ljq4AZjYCqgiyGn.
11-
db_access_creds=user:$apr1$MexAolZ7$qu78x6Ljq4AZjYCqgiyGn.
9+
#use echo $(htpasswd -nb username password) to generate the the creds, Use double dollar signs because of escaping
10+
dashboardcreds=user:$$apr1$$MexAolZ7$$qu78x6Ljq4AZjYCqgiyGn.
11+
db_access_creds=user:$$apr1$$MexAolZ7$$qu78x6Ljq4AZjYCqgiyGn.
1212
#db_access_creds is a http layer in front of adminer, so you need 2 layers of authentication before accessing the db
1313

1414
acme_email=hello@example.com

‎dist/docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
services:
44
traefik:
5-
image: "traefik:v2.5"
5+
image: "traefik:v2.9"
66
container_name: "traefik"
77
command:
88
# - "--log.level=DEBUG"
@@ -76,7 +76,7 @@ services:
7676
- internal
7777

7878
db:
79-
image: mariadb:10.2
79+
image: mariadb:10.11
8080
environment:
8181
MYSQL_ROOT_PASSWORD: $dbRootPass
8282
MYSQL_DATABASE: $dbName
@@ -116,6 +116,7 @@ services:
116116
volumes:
117117
database_mysql:
118118

119+
119120
networks:
120121
web:
121122
external: true

‎docker-compose.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
services:
44
traefik:
5-
image: "traefik:v2.5"
5+
image: "traefik:v2.9"
66
container_name: "traefik"
77
command:
88
# - "--log.level=DEBUG"
@@ -27,15 +27,15 @@ services:
2727
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
2828
labels:
2929
# Dashboard api
30-
- "traefik.enable=true"
31-
- "traefik.http.routers.dashboard.rule=Host(`${domain}`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
32-
- 'traefik.http.routers.dashboard.entrypoints=websecure'
33-
- 'traefik.http.routers.dashboard.tls.certresolver=myresolver'
34-
- 'traefik.http.routers.dashboard.service=api@internal'
35-
- 'traefik.http.routers.dashboard.middlewares=auth'
36-
- "traefik.http.middlewares.auth.basicauth.users=${dashboardcreds}"
37-
# Dummy service for Swarm port detection. The port can be any valid integer value.
38-
- 'traefik.http.services.api@internal.loadbalancer.server.port=8080'
30+
- "traefik.enable=true"
31+
- "traefik.http.routers.dashboard.rule=Host(`${domain}`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
32+
- 'traefik.http.routers.dashboard.entrypoints=websecure'
33+
- 'traefik.http.routers.dashboard.tls.certresolver=myresolver'
34+
- 'traefik.http.routers.dashboard.service=api@internal'
35+
- 'traefik.http.routers.dashboard.middlewares=auth'
36+
- "traefik.http.middlewares.auth.basicauth.users=${dashboardcreds}"
37+
# Dummy service for Swarm port detection. The port can be any valid integer value.
38+
- 'traefik.http.services.api@internal.loadbalancer.server.port=8080'
3939

4040
ports:
4141
- "443:443"
@@ -72,9 +72,9 @@ services:
7272
networks:
7373
- web
7474
- internal
75-
75+
7676
db:
77-
image: mariadb:10.2
77+
image: mariadb:10.11
7878
environment:
7979
MYSQL_ROOT_PASSWORD: $dbRootPass
8080
MYSQL_DATABASE: $dbName
@@ -91,7 +91,6 @@ services:
9191
networks:
9292
- internal
9393

94-
9594
adminer:
9695
image: adminer
9796
restart: always
@@ -115,6 +114,7 @@ services:
115114
volumes:
116115
database_mysql:
117116

117+
118118
networks:
119119
web:
120120
external: true

0 commit comments

Comments
 (0)
Please sign in to comment.