Files
spaceshell/deploy/docker-compose.yaml
vasyansk 333b051e9d
Build / Build & push landing (push) Successful in 18s
Build / Deploy to prod (push) Successful in 6s
Build / Notify Max (push) Successful in 1s
Update version to 0.1.7
Fix landing page GitHub links to use pub namespace
2026-06-15 16:59:27 +07:00

38 lines
1.2 KiB
YAML

# spacesh prod — front nginx proxies to the landing container and serves the DMG.
# Deployed by .gitea/workflows/build.yaml (image + this file); the DMG is uploaded
# separately via `make deploy-dmg` (Tauri can't cross-compile a macOS bundle in CI).
services:
landing:
# LANDING_IMAGE is written to .env by the CI deploy job (exact registry path + tag).
image: ${LANDING_IMAGE:-git.realmanual.ru/pub/spacesh-landing:latest}
restart: unless-stopped
expose:
- "80"
networks:
# Must share a network with `proxy`, else proxy_pass to `landing` can't resolve.
- spaceshell-network
proxy:
image: nginx:1.27-alpine
# Stable name so NPM can forward by name (spacesh-proxy:80) instead of a
# pinned IP that another webproxy container could grab.
container_name: spacesh-proxy
restart: unless-stopped
depends_on:
- landing
expose:
- "80"
volumes:
- ./proxy.conf:/etc/nginx/conf.d/default.conf:ro
- ./download:/srv/download:ro
networks:
spaceshell-network:
webproxy:
ipv4_address: 172.18.0.28
networks:
spaceshell-network:
driver: bridge
webproxy:
name: webproxy
external: true