Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (74 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (74 loc) · 2.05 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
# docker-compose.yml
# Run: docker-compose up -d
services:
# ── Next.js App ──────────────────────────────────────────────────
app:
build:
context: .
dockerfile: Dockerfile
args:
NEXT_PUBLIC_TMDB_IMAGE: "https://image.tmdb.org/t/p"
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
container_name: moviefinder-app
ports:
- "3000:3000"
env_file:
- .env.local
environment:
- NODE_ENV=production
- ADMIN_PANEL_URL=http://localhost:3001
depends_on:
- mongo
restart: unless-stopped
networks:
- moviefinder-net
# ── Rushes Admin Panel ───────────────────────────────────────────
admin:
build:
context: C:/rushes-admin
dockerfile: C:/movie-finder-v2/Dockerfile.admin
container_name: rushes-admin
ports:
- "3001:3001"
env_file:
- C:/rushes-admin/.env.local
environment:
- NODE_ENV=production
- PORT=3001
depends_on:
- mongo
restart: unless-stopped
networks:
- moviefinder-net
# ── MongoDB (local dev only — use Atlas in production) ───────────
mongo:
image: mongo:7
container_name: moviefinder-mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
environment:
- MONGO_INITDB_DATABASE=moviefinder
restart: unless-stopped
networks:
- moviefinder-net
# ── Nginx reverse proxy (production) ────────────────────────────
nginx:
image: nginx:alpine
container_name: moviefinder-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- app
restart: unless-stopped
networks:
- moviefinder-net
volumes:
mongo-data:
networks:
moviefinder-net:
driver: bridge