-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1003 Bytes
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1003 Bytes
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
# Docker Compose for backend, frontend, and MongoDB
version: '3.8'
services:
frontend:
image: ${DOCKERHUB_USERNAME:-kinwon}/movie-frontend:latest
depends_on:
- backend
networks:
- appnet
volumes:
- frontend_build:/app
backend:
image: ${DOCKERHUB_USERNAME:-kinwon}/movie-backend:latest
command: npm run dev
volumes:
- ./backend:/app
environment:
MONGODB_URI: mongodb://mongo:27017/moviedb
depends_on:
- mongo
networks:
- appnet
mongo:
image: mongo:7
restart: always
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
networks:
- appnet
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- frontend_build:/usr/share/nginx/html:ro
depends_on:
- frontend
- backend
networks:
- appnet
networks:
appnet:
driver: bridge
volumes:
mongo_data:
frontend_build: