-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.https.yml
More file actions
50 lines (47 loc) · 1.08 KB
/
Copy pathdocker-compose.https.yml
File metadata and controls
50 lines (47 loc) · 1.08 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: champion
POSTGRES_PASSWORD: champion
POSTGRES_DB: championforge
volumes:
- championforge-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U champion"]
interval: 5s
timeout: 5s
retries: 10
app:
image: ghcr.io/kbcasurf/sec-champs-trail:latest
build:
context: .
dockerfile: Dockerfile
env_file:
- path: .env
required: false
environment:
DATABASE_URL: postgresql://champion:champion@postgres:5432/championforge
JWT_SECRET: ${JWT_SECRET}
WEB_ORIGIN: https://localhost
NODE_ENV: production
TRUST_PROXY_HOPS: "1"
PORT: 3000
depends_on:
postgres:
condition: service_healthy
caddy:
image: caddy:2-alpine
depends_on:
- app
ports:
- "443:443"
- "80:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
volumes:
championforge-db:
caddy-data:
caddy-config: