-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.01 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
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
container_name: tinycdn
volumes:
- ./domains.json:/app/domains.json:ro
- ./.env:/app/.env:ro
ports:
- "8080:8080"
depends_on:
- redis
- minio
- prometheus
redis:
image: redis:7.4-alpine
container_name: tinycdn-redis
ports:
- "6379:6379"
volumes:
- ./docker/redis.conf:/usr/local/etc/redis/redis.conf
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
minio:
image: minio/minio:RELEASE.2025-07-18T21-56-31Z-cpuv1
container_name: tinycdn-minio
environment:
- MINIO_ROOT_USER=${MINIO_USER}
- MINIO_ROOT_PASSWORD=${MINIO_PASSWORD}
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
prometheus:
image: prom/prometheus:latest
container_name: tinycdn-prometheus
volumes:
- ./docker/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"