add staging environment setup

This commit is contained in:
2026-04-12 11:10:13 +02:00
parent 157a752540
commit 727fb978fa
3 changed files with 30 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
api.sshops.uk {
reverse_proxy api:8080
}
staging-api.sshops.uk {
reverse_proxy host.docker.internal:8081
}

View File

@@ -33,6 +33,8 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- api

View File

@@ -0,0 +1,24 @@
services:
api:
build:
context: .
dockerfile: Dockerfile.api
restart: unless-stopped
env_file: .env.staging
volumes:
- ./data-staging:/data
ports:
- "8081:8080"
ssh:
build:
context: .
dockerfile: Dockerfile.ssh
restart: unless-stopped
env_file: .env.staging
ports:
- "2222:22"
volumes:
- ./.ssh:/root/.ssh
depends_on:
- api