-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-internal-tools.yaml
More file actions
178 lines (169 loc) · 5.24 KB
/
docker-compose-internal-tools.yaml
File metadata and controls
178 lines (169 loc) · 5.24 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
name: internal-tools
# This compose file is used to setup all these tools which are used internally:
# 1. Docmost - documentation : handbook.litespace.org
# 2. Kitzu - media production managment : studio.litespace.org
# 3. Mixpost - social media managment : social.litespace.org
# We aim to host and maintain all of our internal tools in one single server.
services:
mixpost:
container_name: mixpost
image: inovector/mixpost-pro-team:latest
environment:
# Application
# https://docs.mixpost.app/lite/configuration/environment-variables#database-environment-variables
LICENSE_KEY: "${MIXPOST_LICENSE_KEY}"
APP_NAME: "LiteSpace"
# Key used to encrypt and decrypt sensitive data. Generate this using the following tool:
# https://mixpost.app/tools/encryption-key-generator
APP_KEY: ${MIXPOST_APP_KEY}
# Debug mode setting. Set to `false` for production environments.
APP_DEBUG: false
# App domain or subdomain, without the 'http://' or 'https://' prefix.
APP_DOMAIN: social.litespace.org
APP_URL: https://social.litespace.org
# MySQL
# https://docs.mixpost.app/lite/configuration/environment-variables#database-environment-variables
DB_HOST: "mysql"
DB_PORT: "3306"
DB_DATABASE: "mixpost"
DB_USERNAME: "mixpost"
DB_PASSWORD: "mixpost"
# Redis
# https://docs.mixpost.app/lite/configuration/environment-variables#redis-environment-variables
REDIS_HOST: "redis"
REDIS_PORT: "6379"
REDIS_PASSWORD: ""
# Specify the email address to be used for SSL certificate registration and notifications.
# https://docs.mixpost.app/lite/configuration/environment-variables#ssl-environment-variables
SSL_EMAIL: "core@litespace.org"
# SMTP
# https://docs.mixpost.app/pro/configuration/environment-variables#smtp-environment-variables
MAIL_HOST: mail.litespace.org
MAIL_PORT: 475
MAIL_USERNAME: mixpost@litespace.org
MAIL_PASSWORD: "${MIXPOST_SMPT_MAIL_PASSWORD}"
MAIL_ENCRYPTION: tls
MAIL_FROM_ADDRESS: "mixpost@litespace.org"
MAIL_FROM_NAME: "LiteSpace Mixpost"
# S3
# https://docs.mixpost.app/pro/configuration/environment-variables#s3
AWS_ACCESS_KEY_ID: "${MIXPOST_AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${MIXPOST_AWS_SECRET_ACCESS}"
AWS_DEFAULT_REGION: "fra1"
AWS_BUCKET: "mixpost"
AWS_ENDPOINT: "https://litespace-staging-assets.fra1.digitaloceanspaces.com"
AWS_USE_PATH_STYLE_ENDPOINT: "false"
ports:
- 9000:80
- 8080:8080
volumes:
- storage:/var/www/html/storage/app
depends_on:
- mysql
- redis
restart: unless-stopped
networks:
- mysql
- redis
docmost:
container_name: docmost
image: docmost/docmost:latest
depends_on:
- postgres
- redis
environment:
APP_URL: "https://handbook.litespace.org"
APP_SECRET: "${DOCMOST_APP_SECRET}"
DATABASE_URL: "postgres://postgres:litespace@postgres:5432/docmost?schema=public"
REDIS_URL: "redis://redis:6379"
MAIL_DRIVER: "smtp"
SMTP_HOST: "mail.litespace.org"
SMTP_PORT: 465
SMTP_USERNAME: "handbook"
SMTP_PASSWORD: "${DOCMOST_SMTP_EMAIL_PASSOWRD}"
SMTP_SECURE: true
MAIL_FROM_ADDRESS: "handbook@litespace.org"
MAIL_FROM_NAME: "LiteSpace Handbook"
STORAGE_DRIVER: "s3"
AWS_S3_ACCESS_KEY_ID: "${DOCMOST_S3_ACCESS_KEY_ID}"
AWS_S3_SECRET_ACCESS_KEY: "${DOCMOST_S3_SECRET_ACCESS_KEY}"
AWS_S3_REGION: "fra1"
AWS_S3_BUCKET: "docmost"
AWS_S3_ENDPOINT: "https://litespace-staging-assets.fra1.digitaloceanspaces.com"
AWS_S3_FORCE_PATH_STYLE: "false"
FILE_UPLOAD_SIZE_LIMIT: "250mb"
ports:
- "127.0.0.1:3006:3000"
restart: unless-stopped
volumes:
- docmost:/app/data/storage
networks:
- postgres
- redis
mysql:
container_name: mysql
image: "mysql/mysql-server:8.0"
environment:
MYSQL_DATABASE: "mixpost"
MYSQL_USER: "mixpost"
MYSQL_PASSWORD: "mixpost"
networks:
- mysql
volumes:
- "mysql:/var/lib/mysql"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p mixpost"]
retries: 3
timeout: 5s
restart: unless-stopped
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-litespace}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "127.0.0.1:5432:5432"
networks:
- postgres
restart: unless-stopped
redis:
container_name: redis
image: redis/redis-stack-server:latest
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
volumes:
- redis:/data
networks:
- redis
networks:
postgres:
name: postgres
driver: bridge
redis:
name: redis
driver: bridge
mysql:
name: mysql
driver: bridge
volumes:
postgres:
name: postgres
driver: local
redis:
name: redis
driver: local
storage:
name: storage
driver: local
mysql:
name: mysql
driver: local
docmost:
name: docmost
driver: local