-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.26 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
services:
ployer:
build:
context: .
network: host
restart: unless-stopped
volumes:
# Persist SQLite database
- ployer-data:/data
# Docker socket so Ployer can manage containers on this host
- /var/run/docker.sock:/var/run/docker.sock
environment:
PLOYER_DATABASE_URL: "sqlite:///data/ployer.db?mode=rwc"
PLOYER_JWT_SECRET: "${PLOYER_JWT_SECRET:-change-me-in-production}"
PLOYER_BASE_DOMAIN: "${PLOYER_BASE_DOMAIN:-localhost}"
PLOYER_PUBLIC_URL: "${PLOYER_PUBLIC_URL:-http://localhost}"
PLOYER_CADDY_URL: "http://caddy:2019"
PLOYER_ALLOWED_ORIGINS: "${PLOYER_ALLOWED_ORIGINS:-*}"
FRONTEND_DIR: "/app/frontend/build"
# Not exposed directly — Caddy is the public entry point
expose:
- "3001"
depends_on:
- caddy
networks:
- ployer-net
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "2019:2019" # Caddy Admin API (used by Ployer to configure routes)
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
networks:
- ployer-net
volumes:
ployer-data:
caddy-data:
caddy-config:
networks:
ployer-net:
driver: bridge