-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 loc) · 1.51 KB
/
docker-compose.yml
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
version: "3.2"
services:
mongo:
image: mongo:3.6
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
deploy:
restart_policy:
condition: on-failure
app:
image: webtimer
ports:
- "3443:4443"
depends_on:
- mongo
environment:
- NODE_ENV=production
- MONGO_HOST=mongodb://mongo/
- SERVER_PORT=4443
- SERVER_EXTERNAL_PORT=3443
- SERVER_EXTERNAL_HOST=localhost
#- SERVER_USE_HTTP=true
#- SERVER_EXTERNAL_USE_HTTP=true
#- SERVER_HOST=0.0.0.0
#- SERVER_PFX_PATH=1.pfx
#- MAIL_HOST=smtp.email.com
#- MAIL_SECURE_PORT=465
#- ABOUT_WEBSITE=http://yoursite.com
#- LOGGER_LEVEL=warn
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 20s
secrets:
- AUTH_FACEBOOK_CLIENT_ID
- AUTH_FACEBOOK_CLIENT_SECRET
- SERVER_PFX_PASSWORD
#- MAIL_AUTH_PASSWORD
volumes:
mongo-data:
secrets:
AUTH_FACEBOOK_CLIENT_ID:
external: true
AUTH_FACEBOOK_CLIENT_SECRET:
external: true
SERVER_PFX_PASSWORD:
external: true
#MAIL_AUTH_PASSWORD:
#external: true
#MONGO_HOST:
#external: true