-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (96 loc) · 3.2 KB
/
docker-compose.yml
File metadata and controls
102 lines (96 loc) · 3.2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
# ─── PostgreSQL ──────────────────────────────────────────────
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: screencontrol
POSTGRES_USER: screencontrol
POSTGRES_PASSWORD: screencontrol
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U screencontrol" ]
interval: 5s
timeout: 5s
retries: 5
# ─── Redis ───────────────────────────────────────────────────
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redisdata:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 5
# ─── MinIO (S3-compatible object storage) ────────────────────
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: screencontrol
MINIO_ROOT_PASSWORD: screencontrol123
ports:
- "9000:9000"
- "9001:9001"
volumes:
- miniodata:/data
healthcheck:
test: [ "CMD", "mc", "ready", "local" ]
interval: 5s
timeout: 5s
retries: 5
# ─── ScreenControl Server ───────────────────────────────────
sc-server:
# image: ghcr.io/theonlytruebigmac/screencontrol/server:latest
# To build locally instead of pulling from GHCR, uncomment:
build:
context: .
dockerfile: docker/Dockerfile.server
ports:
- "8080:8080"
env_file: .env
environment:
- SC__DATABASE__URL=postgres://screencontrol:screencontrol@postgres:5432/screencontrol
- SC__REDIS__URL=redis://redis:6379
- SC__S3__ENDPOINT=http://minio:9000
- SC__S3__PUBLIC_ENDPOINT=http://172.16.103.242:9000
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
# ─── ScreenControl Relay ─────────────────────────────────────
sc-relay:
# image: ghcr.io/theonlytruebigmac/screencontrol/relay:latest
# To build locally instead of pulling from GHCR, uncomment:
build:
context: .
dockerfile: docker/Dockerfile.relay
ports:
- "8041:8041"
env_file: .env
restart: unless-stopped
# ─── Web Console (Next.js) ───────────────────────────────────
web:
# image: ghcr.io/theonlytruebigmac/screencontrol/web:latest
# To build locally instead of pulling from GHCR, uncomment:
build:
context: .
dockerfile: docker/Dockerfile.web
args:
NEXT_PUBLIC_API_URL: http://172.16.103.242:8080/api
NEXT_PUBLIC_WS_URL: ws://172.16.103.242:8080/ws
ports:
- "3000:3000"
depends_on:
- sc-server
volumes:
pgdata:
redisdata:
miniodata: