-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yaml
55 lines (51 loc) · 1.14 KB
/
docker-compose.prod.yaml
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
version: "3.8"
services:
db:
image: mongo
restart: unless-stopped
container_name: mongodb_engage2021
volumes:
- dbdata:/data/db
expose:
- 27017
web:
build: .
image: engage2021/dev
container_name: engage2021
restart: unless-stopped
env_file: .env
expose:
- 3000
ports:
- 5000:3000
depends_on:
- db
- redis
volumes:
- .:/code
- node_modules:/code/node_modules
command: sh -c "/entrypoint"
environment:
- MONGO_URI=mongodb://mongodb_engage2021:27017/engage2021
- WAIT_HOSTS=mongodb_engage2021:27017
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=10
- WAIT_HOST_CONNECT_TIMEOUT=30
- VIRTUAL_HOST=engage-backend.voldemort.wtf
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=engage-backend.voldemort.wtf
- NODE_ENV=production
- AZURE_CONTAINER_NAME=azureuploads
redis:
restart: unless-stopped
image: redis:alpine
ports:
- "6379:6379"
volumes:
dbdata:
node_modules:
networks:
default:
external:
name: nginx-proxy