-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
50 lines (48 loc) · 1.18 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:
# ==============================
# BACKEND (GO + YT-DLP)
# ==============================
backend:
build:
context: ./server
dockerfile: Dockerfile
container_name: fastunduh-backend
restart: unless-stopped
ports:
- "8085:8080"
volumes:
- ./downloads:/app/downloads # Agar hasil download bisa diakses di host jika perlu
environment:
- PORT=8080 # Internal container ttp 8080
- CORS_ORIGIN=*
- REDIS_ADDR=redis_docker:6379 # Connect ke Redis Shared
networks:
- app-network
deploy:
resources:
limits:
memory: 512m
# ==============================
# FRONTEND (VUE + NGINX)
# ==============================
frontend:
build:
context: .
dockerfile: Dockerfile.client
container_name: fastunduh-frontend
restart: unless-stopped
ports:
- "3006:80" # Akses Web di http://localhost:3006 (Unik)
depends_on:
- backend
networks:
- app-network
deploy:
resources:
limits:
memory: 256m
# Gunakan Network Global yang sudah ada
networks:
app-network:
external: true
name: multyapp-project_app-network