fix: Traefik Let's Encrypt acme.json
Some checks failed
Deploy to Staging / Build Images (push) Successful in 21s
Deploy to Staging / Deploy to Staging (push) Failing after 5s
Deploy to Staging / Verify Staging (push) Has been skipped
Deploy to Staging / Notify Staging Ready (push) Has been skipped
Deploy to Staging / Notify Staging Failure (push) Successful in 6s
Some checks failed
Deploy to Staging / Build Images (push) Successful in 21s
Deploy to Staging / Deploy to Staging (push) Failing after 5s
Deploy to Staging / Verify Staging (push) Has been skipped
Deploy to Staging / Notify Staging Ready (push) Has been skipped
Deploy to Staging / Notify Staging Failure (push) Successful in 6s
This commit is contained in:
@@ -122,9 +122,14 @@ jobs:
|
||||
- name: Initialize data directories
|
||||
run: |
|
||||
cd "$DEPLOY_PATH"
|
||||
sudo mkdir -p data/backups data/documents
|
||||
sudo mkdir -p data/backups data/documents data/traefik
|
||||
sudo chown -R 1001:1001 data/backups data/documents
|
||||
sudo chmod 755 data/backups data/documents
|
||||
# Traefik acme.json requires 600 permissions
|
||||
if [ ! -f data/traefik/acme.json ]; then
|
||||
touch data/traefik/acme.json
|
||||
fi
|
||||
chmod 600 data/traefik/acme.json
|
||||
|
||||
- name: Pull new images
|
||||
run: |
|
||||
|
||||
@@ -114,9 +114,14 @@ jobs:
|
||||
- name: Initialize data directories
|
||||
run: |
|
||||
cd "$DEPLOY_PATH"
|
||||
sudo mkdir -p data/backups data/documents
|
||||
sudo mkdir -p data/backups data/documents data/traefik
|
||||
sudo chown -R 1001:1001 data/backups data/documents
|
||||
sudo chmod 755 data/backups data/documents
|
||||
# Traefik acme.json requires 600 permissions
|
||||
if [ ! -f data/traefik/acme.json ]; then
|
||||
touch data/traefik/acme.json
|
||||
fi
|
||||
chmod 600 data/traefik/acme.json
|
||||
|
||||
- name: Pull new images
|
||||
run: |
|
||||
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -17,4 +17,7 @@ coverage/
|
||||
secrets/**
|
||||
!secrets/
|
||||
!secrets/**/
|
||||
!secrets/**/*.example
|
||||
!secrets/**/*.example
|
||||
|
||||
# Traefik ACME certificates (contains private keys)
|
||||
data/traefik/acme.json
|
||||
@@ -191,5 +191,5 @@ services:
|
||||
- ./config/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
|
||||
- ./config/traefik/dynamic:/etc/traefik/dynamic:ro
|
||||
- ./certs:/certs:ro
|
||||
- traefik_data:/data
|
||||
- ./data/traefik:/data
|
||||
- ./secrets/app/cloudflare-dns-token.txt:/run/secrets/cloudflare-dns-token:ro
|
||||
|
||||
@@ -21,7 +21,7 @@ services:
|
||||
- ./config/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
|
||||
- ./config/traefik/dynamic:/etc/traefik/dynamic:ro
|
||||
- ./certs:/certs:ro
|
||||
- traefik_data:/data
|
||||
- ./data/traefik:/data
|
||||
- ./secrets/app/cloudflare-dns-token.txt:/run/secrets/cloudflare-dns-token:ro
|
||||
networks:
|
||||
frontend:
|
||||
@@ -233,7 +233,6 @@ networks:
|
||||
|
||||
# Volume Definitions
|
||||
volumes:
|
||||
traefik_data: null
|
||||
mvp_postgres_data:
|
||||
name: mvp_postgres_data
|
||||
mvp_redis_data:
|
||||
|
||||
Reference in New Issue
Block a user