Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: stackctl generate --output-dir /tmp/stacks-check
- name: Upload Linux stack artifacts for parity inspection
if: github.head_ref == 'chore/nightly-stack-sync-stackctl'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: linux-generated-stacks
path: /tmp/stacks-check/*.yml
Expand Down
216 changes: 108 additions & 108 deletions stacks/infrastructure.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# Generated by stackctl generate — do not edit manually.
services:
redis:
image: 'redis:8.10-alpine'
networks:
default:
aliases:
- redis
command: redis-server --appendonly yes
env_file: ./redis/.env
labels:
- 'traefik.enable=${TRAEFIK_ENABLE}'
- 'traefik.tcp.routers.redis.rule=HostSNI(`${HOST}`)'
- traefik.tcp.routers.redis.entrypoints=websecure
- traefik.tcp.routers.redis.service=redis
- traefik.tcp.routers.redis.tls=true
- 'traefik.tcp.routers.redis.tls.certresolver=${CERT_RESOLVER}'
- 'traefik.tcp.services.redis.loadbalancer.server.port=${PORT}'
healthcheck:
test:
- CMD-SHELL
- redis-cli ping | grep -q PONG
interval: 10s
timeout: 5s
retries: 3
start_period: 20s
logging:
options:
max-size: 10m
max-file: 3
deploy:
resources:
reservations:
memory: 32M
limits:
memory: 128M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 0
window: 120s
apisix_dashboard:
image: 'apache/apisix-dashboard:3.0.1-alpine'
networks:
Expand Down Expand Up @@ -48,53 +87,6 @@ services:
delay: 10s
max_attempts: 10
window: 180s
apisix_gateway:
image: 'apache/apisix:3.17.0-debian'
networks:
default:
aliases:
- apisix-gateway
env_file:
- ./apisix/api-gateway/.env
volumes:
- './apisix/api-gateway/config/apisix.yaml:/usr/local/apisix/conf/config.yaml:ro'
- 'cache:/tmp/apisix-cache/'
healthcheck:
test:
- CMD-SHELL
- test -s /usr/local/apisix/logs/nginx.pid
interval: 20s
timeout: 5s
retries: 3
labels:
- 'traefik.enable=${TRAEFIK_ENABLE}'
- 'traefik.http.routers.apisix.rule=Host(`${HOST}`)'
- 'traefik.http.routers.apisix.entrypoints=web,websecure'
- traefik.http.routers.apisix.service=apisix
- traefik.http.routers.apisix.tls=true
- 'traefik.http.routers.apisix.tls.certresolver=${CERT_RESOLVER}'
- 'traefik.http.services.apisix.loadbalancer.server.port=${PORT}'
logging:
options:
max-size: 10m
max-file: 3
deploy:
mode: global
placement:
constraints:
- node.role == manager
resources:
reservations:
memory: 128M
cpus: '0.10'
limits:
memory: 384M
cpus: '0.40'
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 10
window: 180s
etcd:
image: 'bitnamilegacy/etcd:3.6.4'
networks:
Expand Down Expand Up @@ -128,63 +120,81 @@ services:
delay: 5s
max_attempts: 0
window: 120s
redis:
image: 'redis:8.10-alpine'
apisix_gateway:
image: 'apache/apisix:3.17.0-debian'
networks:
default:
aliases:
- redis
command: redis-server --appendonly yes
env_file: ./redis/.env
labels:
- 'traefik.enable=${TRAEFIK_ENABLE}'
- 'traefik.tcp.routers.redis.rule=HostSNI(`${HOST}`)'
- traefik.tcp.routers.redis.entrypoints=websecure
- traefik.tcp.routers.redis.service=redis
- traefik.tcp.routers.redis.tls=true
- 'traefik.tcp.routers.redis.tls.certresolver=${CERT_RESOLVER}'
- 'traefik.tcp.services.redis.loadbalancer.server.port=${PORT}'
- apisix-gateway
env_file:
- ./apisix/api-gateway/.env
volumes:
- './apisix/api-gateway/config/apisix.yaml:/usr/local/apisix/conf/config.yaml:ro'
- 'cache:/tmp/apisix-cache/'
healthcheck:
test:
- CMD-SHELL
- redis-cli ping | grep -q PONG
interval: 10s
- test -s /usr/local/apisix/logs/nginx.pid
interval: 20s
timeout: 5s
retries: 3
start_period: 20s
labels:
- 'traefik.enable=${TRAEFIK_ENABLE}'
- 'traefik.http.routers.apisix.rule=Host(`${HOST}`)'
- 'traefik.http.routers.apisix.entrypoints=web,websecure'
- traefik.http.routers.apisix.service=apisix
- traefik.http.routers.apisix.tls=true
- 'traefik.http.routers.apisix.tls.certresolver=${CERT_RESOLVER}'
- 'traefik.http.services.apisix.loadbalancer.server.port=${PORT}'
logging:
options:
max-size: 10m
max-file: 3
deploy:
mode: global
placement:
constraints:
- node.role == manager
resources:
reservations:
memory: 32M
limits:
memory: 128M
cpus: '0.10'
limits:
memory: 384M
cpus: '0.40'
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 0
window: 120s
portainer:
image: 'portainer/portainer-ce:2.44.0'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- 'portainer-data:/data'
env_file: ./portainer/.env
labels:
- 'traefik.enable=${TRAEFIK_ENABLE}'
- 'traefik.http.routers.portainer.rule=Host(`${HOST}`)'
- 'traefik.http.services.portainer.loadbalancer.server.port=${PORT}'
- 'traefik.http.routers.portainer.entrypoints=web,websecure'
- traefik.http.routers.portainer.service=portainer
- traefik.http.routers.portainer.tls=true
- 'traefik.http.routers.portainer.tls.certresolver=${CERT_RESOLVER}'
delay: 10s
max_attempts: 10
window: 180s
traefik:
image: 'traefik:v3.7'
networks:
default:
aliases:
- portainer
- traefik
ports:
- '80:80'
- '443:443'
env_file: ./traefik/.env
volumes:
- 'traefik-ssl-certs:/etc/traefik/certs'
- './traefik/auth/htpasswd:/etc/htpasswd:ro'
- './traefik/config/traefik.yml:/etc/traefik/traefik.yml:ro'
- './traefik/config/dynamic.yml:/etc/traefik/dynamic.yml:ro'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
labels:
- 'traefik.enable=${TRAEFIK_ENABLE}'
- 'traefik.http.routers.traefik-ui.rule=Host(`${HOST}`)'
- 'traefik.http.routers.traefik-ui.entrypoints=web,websecure'
- traefik.http.routers.traefik-ui.service=api@internal
- traefik.http.routers.traefik-ui.middlewares=sso
- traefik.http.routers.traefik-ui.tls=true
- 'traefik.http.routers.traefik-ui.tls.certresolver=${CERT_RESOLVER}'
- 'traefik.http.middlewares.sso.plugin.trauth.domain=${TRUEAUTH_DOMAIN}'
- 'traefik.http.middlewares.sso.plugin.trauth.cookiename=${TRUEAUTH_COOKIE}'
- 'traefik.http.middlewares.sso.plugin.trauth.users=${SSO_CREDENTIALS}'
- 'traefik.http.services.traefik-ui.loadbalancer.server.port=${PORT}'
logging:
options:
max-size: 10m
Expand Down Expand Up @@ -248,34 +258,24 @@ services:
options:
max-size: 10m
max-file: 3
traefik:
image: 'traefik:v3.7'
networks:
default:
aliases:
- traefik
ports:
- '80:80'
- '443:443'
env_file: ./traefik/.env
portainer:
image: 'portainer/portainer-ce:2.44.0'
volumes:
- 'traefik-ssl-certs:/etc/traefik/certs'
- './traefik/auth/htpasswd:/etc/htpasswd:ro'
- './traefik/config/traefik.yml:/etc/traefik/traefik.yml:ro'
- './traefik/config/dynamic.yml:/etc/traefik/dynamic.yml:ro'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- '/var/run/docker.sock:/var/run/docker.sock'
- 'portainer-data:/data'
env_file: ./portainer/.env
labels:
- 'traefik.enable=${TRAEFIK_ENABLE}'
- 'traefik.http.routers.traefik-ui.rule=Host(`${HOST}`)'
- 'traefik.http.routers.traefik-ui.entrypoints=web,websecure'
- traefik.http.routers.traefik-ui.service=api@internal
- traefik.http.routers.traefik-ui.middlewares=sso
- traefik.http.routers.traefik-ui.tls=true
- 'traefik.http.routers.traefik-ui.tls.certresolver=${CERT_RESOLVER}'
- 'traefik.http.middlewares.sso.plugin.trauth.domain=${TRUEAUTH_DOMAIN}'
- 'traefik.http.middlewares.sso.plugin.trauth.cookiename=${TRUEAUTH_COOKIE}'
- 'traefik.http.middlewares.sso.plugin.trauth.users=${SSO_CREDENTIALS}'
- 'traefik.http.services.traefik-ui.loadbalancer.server.port=${PORT}'
- 'traefik.http.routers.portainer.rule=Host(`${HOST}`)'
- 'traefik.http.services.portainer.loadbalancer.server.port=${PORT}'
- 'traefik.http.routers.portainer.entrypoints=web,websecure'
- traefik.http.routers.portainer.service=portainer
- traefik.http.routers.portainer.tls=true
- 'traefik.http.routers.portainer.tls.certresolver=${CERT_RESOLVER}'
networks:
default:
aliases:
- portainer
logging:
options:
max-size: 10m
Expand Down
96 changes: 48 additions & 48 deletions stacks/observability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,54 +101,6 @@ services:
limits:
memory: 384M
cpus: '0.40'
memcached:
image: 'memcached:1.6.45'
environment:
- MEMCACHED_MAX_MEMORY=64m
- MEMCACHED_THREADS=2
networks:
default:
aliases:
- memcached
logging:
options:
max-size: 10m
max-file: 3
tempo:
image: 'grafana/tempo:3.0.2'
user: tempo
command:
- '-config.file=/etc/tempo/config.yaml'
volumes:
- './observability/tempo/tempo.yaml:/etc/tempo/config.yaml'
- 'tempo-data:/var/tempo'
environment:
- TEMPO_GID=10001
- TEMPO_UID=10001
env_file: ./observability/tempo/.env
networks:
default:
aliases:
- tempo
logging:
options:
max-size: 10m
max-file: 3
depends_on:
- memcached
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: any
resources:
reservations:
memory: 256M
limits:
memory: 600M
prometheus:
image: 'prom/prometheus:v3.13.2'
command:
Expand Down Expand Up @@ -202,6 +154,54 @@ services:
limits:
memory: 1200M
cpus: '0.80'
memcached:
image: 'memcached:1.6.45'
environment:
- MEMCACHED_MAX_MEMORY=64m
- MEMCACHED_THREADS=2
networks:
default:
aliases:
- memcached
logging:
options:
max-size: 10m
max-file: 3
tempo:
image: 'grafana/tempo:3.0.2'
user: tempo
command:
- '-config.file=/etc/tempo/config.yaml'
volumes:
- './observability/tempo/tempo.yaml:/etc/tempo/config.yaml'
- 'tempo-data:/var/tempo'
environment:
- TEMPO_GID=10001
- TEMPO_UID=10001
env_file: ./observability/tempo/.env
networks:
default:
aliases:
- tempo
logging:
options:
max-size: 10m
max-file: 3
depends_on:
- memcached
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: any
resources:
reservations:
memory: 256M
limits:
memory: 600M
beszel:
image: 'henrygd/beszel:0.18.7'
networks:
Expand Down
Loading
Loading