-
Notifications
You must be signed in to change notification settings - Fork 3
/
portainer-standalone.yaml
104 lines (98 loc) · 2.93 KB
/
portainer-standalone.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
whaticket_backend:
image: whaticket-backend:latest
depends_on:
- postgres_whaticket
- whaticket_redis
environment:
- NODE_ENV=${NODE_ENV}
- BACKEND_URL=${BACKEND_URL}
- FRONTEND_URL=${FRONTEND_URL}
- PROXY_PORT=${PROXY_PORT}
- PORT=${PORT}
- DOMINIO=${DOMINIO}
- PURCHASE_KEY=${PURCHASE_KEY}
- TIMEOUT_TO_IMPORT_MESSAGE=${TIMEOUT_TO_IMPORT_MESSAGE}
- FLUSH_REDIS_ON_START=${FLUSH_REDIS_ON_START}
- DEBUG_TRACE=${DEBUG_TRACE}
- CHATBOT_RESTRICT_NUMBER=${CHATBOT_RESTRICT_NUMBER}
- BROWSER_CLIENT=${BROWSER_CLIENT}
- BROWSER_NAME=${BROWSER_NAME}
- BROWSER_VERSION=${BROWSER_VERSION}
- DB_HOST=${DB_HOST}
- DB_DIALECT=${DB_DIALECT}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
- DB_PORT=${DB_PORT}
- REDIS_URI=${REDIS_URI}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- REDIS_OPT_LIMITER_MAX=${REDIS_OPT_LIMITER_MAX}
- REDIS_OPT_LIMITER_DURATION=${REDIS_OPT_LIMITER_DURATION}
- CONNECTIONS_LIMIT=${CONNECTIONS_LIMIT}
- MAIL_HOST=${MAIL_HOST}
- MAIL_USER=${MAIL_USER}
- MAIL_PASS=${MAIL_PASS}
- MAIL_FROM=${MAIL_FROM}
- MAIL_PORT=${MAIL_PORT}
volumes:
- ./backend/public/:/usr/src/app/public/
restart: always
networks:
- whaticket
# ports:
# - "3000:3000"
whaticket_frontend:
image: whaticket-frontend:latest
depends_on:
- whaticket_backend
environment:
- FRONTEND_PORT=${FRONTEND_PORT}
- REACT_APP_BACKEND_URL=${REACT_APP_BACKEND_URL}
- REACT_APP_BACKEND_PROTOCOL=${REACT_APP_BACKEND_PROTOCOL}
- REACT_APP_BACKEND_HOST=${REACT_APP_BACKEND_HOST}
- REACT_APP_BACKEND_PORT=${REACT_APP_BACKEND_PORT}
- REACT_APP_HOURS_CLOSE_TICKETS_AUTO=${REACT_APP_HOURS_CLOSE_TICKETS_AUTO}
- REACT_APP_LOCALE=${REACT_APP_LOCALE}
- REACT_APP_TIMEZONE=${REACT_APP_TIMEZONE}
- REACT_APP_FACEBOOK_APP_ID=${REACT_APP_FACEBOOK_APP_ID}
- REACT_ENABLE_SAAS=${REACT_ENABLE_SAAS}
restart: always
networks:
- whaticket
# ports:
# - "3250:3250"
postgres_whaticket:
image: postgres:13
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TZ=${TZ}
restart: always
networks:
- whaticket
whaticket_redis:
image: redis:latest
command: redis-server --requirepass "${REDIS_PASSWORD}"
volumes:
- redis-data:/data
restart: always
networks:
- whaticket
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run --token ${TUNNEL_TOKEN}
restart: always
networks:
- whaticket
networks:
whaticket:
external: true
volumes:
postgres-data:
redis-data: