Services, ports and volumes
Environment variables
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Security and requirements
Level: Standard. What this template needs:- Publishes ports directly on the host (
s3,seaweedfs): 8333:8333, 8888:8888, 9333:9333. - Passwords and keys are generated at deploy time (
s3): S3_ACCESS_KEY, S3_SECRET_KEY. - Stores data in named volumes (
seaweedfs): seaweedfs_data.
- Automatic HTTPS and an ingress shield in front of every domain.
- Secrets are generated, stored encrypted and masked in logs and the UI.
- Named volumes can be backed up and restored.
- Deploys are gated on the health check before traffic switches.
- One-step rollback to the previous revision.
- Exposure report shows what is reachable from outside.
- Host firewall rules managed for published ports.
Reach the S3 API and use it as a backup target
The master UI (port 9333) is theseaweedfs service. The S3 API is its own s3 service on port 8333, so give it a separate domain (for example s3.example.com) in the app’s domain settings and it gets its own HTTPS route.
To use it as a backup target, add a storage target with:
- Endpoint:
https://s3.example.com(or the private addresshttp://<host>:8333on the same host; this needsAPP_NOTIFY_ALLOW_PRIVATE_NETWORKS=true). - Access key and secret key: the generated
S3_ACCESS_KEYandS3_SECRET_KEYof thes3service (read them from the app’s secrets). - Path-style addressing on, region any value (for example
us-east-1). - Create the bucket first, for example with
aws --endpoint-url https://s3.example.com s3 mb s3://backups.