This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-backend.yml
63 lines (61 loc) · 2.11 KB
/
docker-compose-backend.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
version: '3.1'
services:
mysql:
image: "mysql:5.7"
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "true"
expose:
- "3306"
volumes:
- ./docker:/docker-entrypoint-initdb.d:ro
- ./data/mysql:/var/lib/mysql:rw
redis:
image: redis
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 30s
timeout: 10s
retries: 3
unified:
build: .
depends_on:
- mysql
- redis
ports:
- ${PORT?Variable PORT not set}:7070
expose:
- "3000"
environment:
stream__host: redis
web__listen: 0.0.0.0
# web__port: ${PORT?Variable PORT not set}
web__port: 7070
web__public_url: "https://${DOMAIN?Variable DOMAIN not set}"
admin__listen: unified
admin__modKey: enableAdmin
database__default__type: mysql
database__default__options__database: lmpc_platform
database__default__options__host: mysql
database__default__options__username: platform
database__default__options__password: publicchat_test
database__overlay__options__username: overlay
database__overlay__options__password: publicchat_test
database__overlay__options__database: lmpc_overlay
#pomf__provider: "nodepomf"
pomf__provider_url: "http://127.0.0.1:7070/upload"
# these are defaults...
#NPOMF_DB_FILENAME: ./databases/pomf_files.db
#NPOMF_MAX_UPLOAD_SIZE: 1000000 # 10mb
# if you don't set this, file uploads aren't going to work
# tho you can set it in the loki.ini
#NPOMF_FILE_URL: "https://${DOMAIN?Variable DOMAIN not set}/f"
#api__url: http://unified:7070/
#admin__url: http://unified:3000/
volumes:
- ./loki.ini:/usr/src/app/loki.ini
- ./data/files:/usr/src/app/files:rw
- ./data/pomfdb:/usr/src/app/databases:rw
- ./docker:/usr/src/app/docker:ro
entrypoint: ["./docker/wait-for-it/wait-for-it.sh", "mysql:3306", "--", "./docker/wait-for-it/wait-for-it.sh", "redis:6379", "--", "pm2-runtime", "overlay_server.js"]