Last active
February 11, 2024 07:21
-
-
Save huksley/c9707a253570e454bdb9d4d6e74a3017 to your computer and use it in GitHub Desktop.
Full configuration example for mrsk for NextJS. Save as config/deploy.yml See more at https://github.com/mrsked/mrsk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://raw.githubusercontent.com/kjellberg/mrsk/validate-with-json-schema/lib/mrsk/configuration/schema.yaml | |
service: testexample | |
image: githubuser/test/main | |
servers: | |
web: | |
hosts: | |
- 1.1.1.1 | |
labels: | |
traefik.http.routers.web.rule: Host(`test.example.com`) | |
traefik.http.routers.web_secure.entrypoints: websecure | |
traefik.http.routers.web_secure.rule: Host(`test.example.com`) | |
traefik.http.routers.web_secure.tls: true | |
traefik.http.routers.web_secure.tls.certresolver: letsencrypt | |
registry: | |
server: ghcr.io | |
username: githubuser | |
password: | |
- GHCR_TOKEN | |
healthcheck: | |
path: /api/health | |
accessories: | |
redis: | |
image: redis:latest | |
host: 1.1.1.1 | |
role: | |
- web | |
port: "172.17.0.1:6379:6379" | |
volumes: | |
- /var/lib/redis:/data | |
cmd: "--dir /data" | |
env: | |
clear: | |
REDIS_URL: "redis://172.17.0.1:6379" | |
secret: | |
- SUPABASE_SERVICE_KEY | |
ssh: | |
user: ubuntu | |
builder: | |
multiarch: false | |
traefik: | |
options: | |
publish: | |
# Do not add 80:80, as it added by default | |
- "443:443" | |
volume: | |
- "/tmp/acme.json:/tmp/acme.json" | |
args: | |
entryPoints.web.address: ":80" | |
entryPoints.websecure.address: ":443" | |
certificatesResolvers.letsencrypt.acme.email: "[email protected]" | |
certificatesResolvers.letsencrypt.acme.storage: "/tmp/acme.json" | |
certificatesResolvers.letsencrypt.acme.httpchallenge: true | |
certificatesResolvers.letsencrypt.acme.httpchallenge.entrypoint: web | |
memory: 512m | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect!