This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
71 lines (67 loc) · 1.98 KB
/
docker-compose.prod.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
version: '2.4'
services:
node:
volumes:
- '/mnt/datalakepe/:/mnt/datalakepe/'
environment:
- NODE_ENV=production
- ZEN_ENV=production
front:
environment:
- NODE_ENV=production
- REACT_APP_ZEN_ENV=production
- NPM_CONFIG_PRODUCTION=false
- YARN_PRODUCTION=false
front-admin:
environment:
- NODE_ENV=production
- REACT_APP_ZEN_ENV=production
- NPM_CONFIG_PRODUCTION=false
- YARN_PRODUCTION=false
cron:
restart: unless-stopped
build:
context: .
dockerfile: dockerfile_cron
cpus: '4.0'
mem_limit: 8G
volumes:
- './back:/home/back'
- '/mnt/datalakepe/:/mnt/datalakepe/'
- './back/var/log/zen_cron:/var/log/zen_cron'
networks:
actualisation_network:
ipv4_address: 172.0.0.101
depends_on:
- 'db'
environment:
- DATABASE_URL=${DATABASE_URL}
- CLIENT_OAUTH_ID=${CLIENT_OAUTH_ID}
- CLIENT_OAUTH_SECRET=${CLIENT_OAUTH_SECRET}
- API_HOST=${API_HOST}
- TOKEN_HOST=${TOKEN_HOST}
- APP_HOST=${APP_HOST}
- COOKIE_SECRET=${COOKIE_SECRET}
- AUTH_REDIRECT_URI=${AUTH_REDIRECT_URI}
- SENTRY_ENV=${SENTRY_ENV}
- SENTRY_URL=${SENTRY_URL}
- EMAIL_KEY=${EMAIL_KEY}
- EMAIL_KEY_SECRET=${EMAIL_KEY_SECRET}
- TZ=Europe/Paris
- SLACK_WEBHOOK_SU_ZEN=${SLACK_WEBHOOK_SU_ZEN}
- SLACK_WEBHOOK_SU_ZEN_TECH=${SLACK_WEBHOOK_SU_ZEN_TECH}
- SEND_CAMPAIGN_EMAILS=${SEND_CAMPAIGN_EMAILS}
- SEND_TRANSACTIONAL_EMAILS=${SEND_TRANSACTIONAL_EMAILS}
- AUTHORIZE_ALL_USERS=${AUTHORIZE_ALL_USERS}
- WINSTON_ENABLE_SLACK=${WINSTON_ENABLE_SLACK}
- WINSTON_ENABLE_LOG=${WINSTON_ENABLE_LOG}
- WINSTON_ENABLE_FILE=${WINSTON_ENABLE_FILE}
- WINSTON_FILE_FOLDER=/var/log/zen_cron
- NODE_ENV=production
- REACT_APP_ZEN_ENV=production
- NPM_CONFIG_PRODUCTION=false
- YARN_PRODUCTION=false
backups:
build:
args:
- BACKUPS_ENV=production