-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.16 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
services:
featureflags:
image: ghcr.io/lrfoster03/featureflags:latest
restart: unless-stopped
depends_on:
- postgres
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:8080
ConnectionStrings__FeatureFlags: Host=postgres;Port=5432;Database=featureflags;Username=featureflags;Password=${POSTGRES_PASSWORD}
ConnectionStrings__Application: Host=postgres;Port=5432;Database=featureflags;Username=featureflags;Password=${POSTGRES_PASSWORD}
expose:
- "8080"
volumes:
- dataprotection-keys:/root/.aspnet/DataProtection-Keys
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: featureflags
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: featureflags
volumes:
- postgres-data:/var/lib/postgresql/data
caddy:
image: caddy:2
restart: unless-stopped
depends_on:
- featureflags
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
volumes:
postgres-data:
caddy-data:
caddy-config:
dataprotection-keys: