-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (50 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
51 lines (50 loc) · 1.11 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
version: "3.9"
services:
node:
env_file: .env
build: .
expose:
- 5000
environment:
DB: mongodb://db/portfo
REDIS: redis://cache
volumes:
- .:/home/server/app
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- db
- cache
# server_test:
# image: portfo_server
# environment:
# DB: mongodb://db/portfo_test
# REDIS: redis://cache
# volumes:
# - .:/home/server/app
# command: npm run docker-test
# depends_on:
# - server
# - db
# - cache
db:
image: mongo:4.4.8-focal
expose:
- 27017
volumes:
- ./db:/data/db
cache:
image: redis:alpine
expose:
- 6379
restart: always
depends_on:
- db
nginx:
build: ./nginx
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
ports:
- 80:80
- 443:443
depends_on:
- node