This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
forked from remipichon/manifmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.preprod-manifmaker.yml
82 lines (76 loc) · 2.79 KB
/
docker-compose.preprod-manifmaker.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
mongodb:
image: 'assomaker/mongodb:0.1.1'
networks:
- manifmaker
mongodb_backup: #Main DB
image: 'assomaker/mongodbbackup:0.1.0'
depends_on:
- mongodb
environment:
- CRON_TIME=20 3 * * * #Change to your favorite cron job schedule
- MAX_BACKUPS=10
- INIT_BACKUP=yes
- MONGODB_HOST=mongodb
- MONGODB_PORT=27017
- MONGODB_USER=backupuser #backup user previously added in /admin database
- MONGODB_PASS=backupuserPWD
volumes:
- backup:/backup #Change to the host folder where you want to store the backups
networks:
- manifmaker
manifmaker: #Main App
image: 'assomaker/manifmaker:${MANIFMAKER_VERSION:-0.3.2}'
depends_on:
- mongodb
environment:
#- INJECT_ALL_DATA=true
- ROOT_URL=http://${VIRTUAL_HOST}/
- MONGO_URL=mongodb
- MANIFMAKER_ENDPOINT=http://manifmaker:80
- EXPORT_PDF_ENDPOINT=http://node_export_pdf:3030/export
- NGINX_ENDPOINT=http://${VIRTUAL_HOST}/pdf/
- PUBLIC_ACCESS=http://${VIRTUAL_HOST}
- VIRTUAL_HOST=${VIRTUAL_HOST} #for nginx-proxy
- GOOGLE_CLIENTID=${GOOGLE_CLIENTID}
- GOOGLE_SECRET=${GOOGLE_SECRET}
- FACEBOOK_APPID=${FACEBOOK_APPID}
- FACEBOOK_SECRET=${FACEBOOK_SECRET}
- DATA_INJECT_EVERYTIME=${DATA_INJECT_EVERYTIME}
- DATA_INJECT_ONCE=${DATA_INJECT_ONCE}
- DATA_INJECT_CLASS=${DATA_INJECT_CLASS}
- IT_IS_REALLY_NOT_PRODUCTION=${IT_IS_REALLY_NOT_PRODUCTION}
- IT_IS_NOT_PRODUCTION_IT_IS_OK_TO_DELETE_DATA=${IT_IS_NOT_PRODUCTION_IT_IS_OK_TO_DELETE_DATA}
networks:
- voc_network
- manifmaker
volumes:
- images:/opt/meteor/dist/cfs/files/images
node_export_pdf: #Node app that run wkhtmltopdf container
image: 'assomaker/pdfexport:0.1.0'
environment:
- OUTPUTDIR=export_pdf #w shared volume with Nginx
- NETWORKMODE=manifmaker_network #on which network whhtmltopdf container will be created (should be one where manifmaker is reachable)
- MANIFMAKER_ENDPOINT=http://manifmaker:3000 #to send pdf status
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- manifmaker
nginx: #Expose generated PDF by full name only
image: nginx
container_name: nginx
ports:
- "80"
volumes:
- export_pdf:/usr/share/nginx/html/pdf
networks:
- manifmaker
volumes:
backup:
images:
export_pdf:
networks:
manifmaker:
voc_network:
external: true