-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.second.yml
More file actions
61 lines (51 loc) · 2.1 KB
/
docker-compose.second.yml
File metadata and controls
61 lines (51 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Docker Compose configuration for a second instance of BudgetExperiment
# Can be run alongside the primary instance using different ports and database
#
# Usage:
# docker compose -f docker-compose.pi.yml -f docker-compose.second.yml up -d
#
# Or run just this instance:
# docker compose -f docker-compose.second.yml up -d
#
# Example .env file additions:
# DB_CONNECTION_STRING_2=Host=your-db-server;Port=5432;Database=budgetexperiment2;Username=your-user;Password=your-password
services:
budgetexperiment-2:
image: ghcr.io/becauseimclever/budgetexperiment:3
container_name: budgetexperiment-2
ports:
- "5100:8080"
environment:
# ASP.NET Core configuration
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:8080
# Database connection (use DB_CONNECTION_STRING_2 for separate DB, or DB_CONNECTION_STRING to share)
- ConnectionStrings__AppDb=${DB_CONNECTION_STRING_2:-${DB_CONNECTION_STRING}}
# Authentication (Authentik OIDC)
- Authentication__Authentik__Enabled=${AUTHENTIK_ENABLED_2:-${AUTHENTIK_ENABLED:-false}}
- Authentication__Authentik__Authority=${AUTHENTIK_AUTHORITY_2:-${AUTHENTIK_AUTHORITY:-}}
- Authentication__Authentik__Audience=${AUTHENTIK_AUDIENCE_2:-${AUTHENTIK_AUDIENCE:-}}
- Authentication__Authentik__RequireHttpsMetadata=${AUTHENTIK_REQUIRE_HTTPS_2:-${AUTHENTIK_REQUIRE_HTTPS:-true}}
# Logging
- Logging__LogLevel__Default=Information
- Logging__LogLevel__Microsoft.AspNetCore=Warning
# CORS (adjust as needed for production)
- AllowedHosts=*
restart: unless-stopped
# No container-level healthcheck — chiseled .NET images have no shell or curl.
# Monitor via external HTTP access to /health endpoint.
# Resource limits (adjust based on your Raspberry Pi model)
deploy:
resources:
limits:
cpus: '2'
memory: 1G
reservations:
cpus: '0.5'
memory: 256M
# Network configuration
networks:
- budget-network
networks:
budget-network:
driver: bridge