-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
160 lines (153 loc) · 4.66 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: '3.9'
x-logging: &default-logging
driver: json-file
options:
max-size: 200k
max-file: 10
services:
web:
build:
context: .
dockerfile: web/Dockerfile
image: ${REGISTRY_PREFIX:-}jaa-web:latest
init: true
networks:
- web
environment:
PUBLIC_DOMAIN: $PUBLIC_DOMAIN
labels:
traefik.enable: 'true'
traefik.http.routers.jaa-web.rule: Host(`${PUBLIC_DOMAIN}`)
traefik.http.routers.jaa-web.entrypoints: $TRAEFIK_ENTRYPOINTS
traefik.http.routers.jaa-web.tls.certresolver: $TRAEFIK_CERTRESOLVER
logging: *default-logging
directus-db:
volumes:
- directus-db-data:/var/lib/postgresql/data
secrets:
- jaa_directus_db_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/jaa_directus_db_password
networks:
- jaa-directus
logging: *default-logging
directus-cache:
image: redis:7-alpine
networks:
- jaa-directus
logging: *default-logging
directus:
volumes:
- directus-uploads:/directus/uploads
secrets:
- jaa_directus_key
- jaa_directus_secret
- jaa_directus_db_password
- jaa_directus_admin_password
environment:
PUBLIC_URL: https://directus.${PUBLIC_DOMAIN}
REFRESH_TOKEN_COOKIE_SECURE: 'true'
DB_POOL_MIN: number:0
CACHE_ENABLED: 'true'
CACHE_STORE: redis
CACHE_REDIS: redis://directus-cache:6379
CACHE_AUTO_PURGE: 'true'
KEY_FILE: /run/secrets/jaa_directus_key
SECRET_FILE: /run/secrets/jaa_directus_secret
DB_PASSWORD_FILE: /run/secrets/jaa_directus_db_password
ADMIN_PASSWORD_FILE: /run/secrets/jaa_directus_admin_password
CORS_ORIGIN: https://${PUBLIC_DOMAIN}
networks:
- jaa-directus
- web
labels:
traefik.enable: 'true'
traefik.http.routers.jaa-directus.rule: Host(`directus.${PUBLIC_DOMAIN}`)
traefik.http.routers.jaa-directus.entrypoints: $TRAEFIK_ENTRYPOINTS
traefik.http.routers.jaa-directus.tls.certresolver: $TRAEFIK_CERTRESOLVER
logging: *default-logging
chatwoot-db:
volumes:
- chatwoot-db-data:/var/lib/postgresql/data
secrets:
- jaa_chatwoot_db_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/jaa_chatwoot_db_password
networks:
- jaa-chatwoot
logging: *default-logging
chatwoot-cache:
networks:
- jaa-chatwoot
logging: *default-logging
chatwoot-sidekiq:
secrets:
- jaa_chatwoot_secret_key_base
- jaa_chatwoot_db_password
- jaa_chatwoot_smtp_password
environment:
FRONTEND_URL: https://chatwoot.${PUBLIC_DOMAIN}
SECRET_KEY_BASE_FILE: /run/secrets/jaa_chatwoot_secret_key_base
POSTGRES_PASSWORD_FILE: /run/secrets/jaa_chatwoot_db_password
MAILER_SENDER_EMAIL: $CHATWOOT_MAILER_SENDER_EMAIL
SMTP_ADDRESS: $CHATWOOT_SMTP_ADDRESS
SMTP_AUTHENTICATION: $CHATWOOT_SMTP_AUTHENTICATION
SMTP_DOMAIN: $CHATWOOT_SMTP_DOMAIN
SMTP_ENABLE_STARTTLS_AUTO: '$CHATWOOT_SMTP_ENABLE_STARTTLS_AUTO'
SMTP_PORT: $CHATWOOT_SMTP_PORT
SMTP_USERNAME: $CHATWOOT_SMTP_USERNAME
SMTP_PASSWORD_FILE: /run/secrets/jaa_chatwoot_smtp_password
networks:
- default
- jaa-chatwoot
logging: *default-logging
chatwoot-rails:
volumes:
- chatwoot-rails-storage:/app/storage
secrets:
- jaa_chatwoot_secret_key_base
- jaa_chatwoot_db_password
environment:
FRONTEND_URL: https://chatwoot.${PUBLIC_DOMAIN}
FORCE_SSL: 'true'
SECRET_KEY_BASE_FILE: /run/secrets/jaa_chatwoot_secret_key_base
POSTGRES_PASSWORD_FILE: /run/secrets/jaa_chatwoot_db_password
networks:
- jaa-chatwoot
- web
labels:
traefik.enable: 'true'
traefik.http.routers.jaa-chatwoot.rule: Host(`chatwoot.${PUBLIC_DOMAIN}`)
traefik.http.routers.jaa-chatwoot.entrypoints: $TRAEFIK_ENTRYPOINTS
traefik.http.routers.jaa-chatwoot.tls.certresolver: $TRAEFIK_CERTRESOLVER
traefik.http.routers.jaa-chatwoot.middlewares: chatwoot-headers
traefik.http.middlewares.chatwoot-headers.headers.customrequestheaders.X-Forwarded-Proto: https
logging: *default-logging
networks:
web:
name: $TRAEFIK_NETWORK
external: true
jaa-directus:
internal: true
jaa-chatwoot:
internal: true
volumes:
directus-db-data:
directus-uploads:
chatwoot-db-data:
chatwoot-rails-storage:
secrets:
jaa_directus_key:
external: true
jaa_directus_secret:
external: true
jaa_directus_db_password:
external: true
jaa_directus_admin_password:
external: true
jaa_chatwoot_secret_key_base:
external: true
jaa_chatwoot_db_password:
external: true
jaa_chatwoot_smtp_password:
external: true