-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
40 lines (40 loc) · 851 Bytes
/
docker-compose.prod.yml
File metadata and controls
40 lines (40 loc) · 851 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
version: "3"
services:
mongodb:
image: mongo
container_name: mongodb
restart: always
ports:
- "27017:27017"
volumes:
- /var/databases/mongodb/coderspaces-data:/data/db
backend:
build:
dockerfile: Dockerfile.prod
context: ./backend/
container_name: backend
restart: always
ports:
- "5500:5500"
env_file:
- ./backend/.env
volumes:
- ./backend:/backend
- /backend/node_modules
depends_on:
- mongodb
frontend:
build:
dockerfile: Dockerfile.prod
context: ./
container_name: frontend
ports:
- "80:80"
- "443:443"
env_file:
- ./frontend/.env
volumes:
- ./deploy/default.conf:/etc/nginx/sites-available/default
- /var/certs/etc-letsencrypt:/etc/letsencrypt
depends_on:
- backend