-
Notifications
You must be signed in to change notification settings - Fork 37
/
compose.chatnio.yml
75 lines (73 loc) · 2.38 KB
/
compose.chatnio.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
services:
chatnio:
# image: ${HARBOR_CHATNIO_IMAGE}:${HARBOR_CHATNIO_VERSION}
# We add a few of extra dependencies to the image
build:
context: ./chatnio
dockerfile: Dockerfile
args:
HARBOR_CHATNIO_IMAGE: ${HARBOR_CHATNIO_IMAGE}
HARBOR_CHATNIO_VERSION: ${HARBOR_CHATNIO_VERSION}
container_name: ${HARBOR_CONTAINER_PREFIX}.chatnio
ports:
- ${HARBOR_CHATNIO_HOST_PORT}:8094
depends_on:
- chatnio-mysql
- chatnio-redis
ulimits:
nofile:
soft: 65535
hard: 65535
env_file:
- ./.env
- ./chatnio/override.env
environment:
MYSQL_HOST: chatnio-mysql
MYSQL_USER: ${HARBOR_CHATNIO_MYSQL_USER}
MYSQL_PASSWORD: ${HARBOR_CHATNIO_MYSQL_PASSWORD}
MYSQL_DB: ${HARBOR_CHATNIO_MYSQL_DATABASE}
REDIS_HOST: chatnio-redis
REDIS_PORT: 6379
REDIS_PASSWORD: ""
REDIS_DB: 0
SERVE_STATIC: "true"
volumes:
- ${HARBOR_CHATNIO_WORKPSACE}/config:/config
- ${HARBOR_CHATNIO_WORKPSACE}/logs:/logs
- ${HARBOR_CHATNIO_WORKPSACE}/storage:/storage
- ./chatnio/config/config.base.yml:/configs/config.base.yml
- ./chatnio/config/config.override.yml:/configs/config.z.override.yml
- ./chatnio/start_chatnio.sh:/app/start_chatnio.sh
- ./shared/yaml_config_merger.py:/app/yaml_config_merger.py
entrypoint: ["/app/start_chatnio.sh"]
networks:
- harbor-network
chatnio-mysql:
image: ${HARBOR_CHATNIO_MYSQL_IMAGE}:${HARBOR_CHATNIO_MYSQL_VERSION}
container_name: ${HARBOR_CONTAINER_PREFIX}.chatnio-mysql
environment:
MYSQL_ROOT_PASSWORD: ${HARBOR_CHATNIO_MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${HARBOR_CHATNIO_MYSQL_DATABASE}
MYSQL_USER: ${HARBOR_CHATNIO_MYSQL_USER}
MYSQL_PASSWORD: ${HARBOR_CHATNIO_MYSQL_PASSWORD}
env_file:
- ./.env
- ./chatnio/override.env
ports:
- ${HARBOR_CHATNIO_MYSQL_HOST_PORT}:3306
volumes:
- ${HARBOR_CHATNIO_WORKPSACE}/db:/var/lib/mysql
networks:
- harbor-network
chatnio-redis:
image: ${HARBOR_CHATNIO_REDIS_IMAGE}:${HARBOR_CHATNIO_REDIS_VERSION}
container_name: ${HARBOR_CONTAINER_PREFIX}.chatnio-redis
env_file:
- ./.env
- ./chatnio/override.env
ports:
- ${HARBOR_CHATNIO_REDIS_HOST_PORT}:6379
volumes:
- ${HARBOR_CHATNIO_WORKPSACE}/redis:/data
networks:
- harbor-network