-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (56 loc) · 1.68 KB
/
docker-compose.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
# @author DiZed Team
# @copyright Copyright (c) DiZed Team (https://github.com/di-zed/)
version: '3'
services:
node18:
container_name: node18-ysh
image: node:18.18.0
command: npm run start
hostname: docker-node18
ports:
- "${SERVER_HOST_PORT}:${SERVER_CONTAINER_PORT}"
- "${SERVER_TLS_HOST_PORT}:${SERVER_TLS_CONTAINER_PORT}"
volumes:
- .:/home/app
- ./volumes/etc/ssl:/etc/ssl/docker:cached
environment:
NODE_ENV: ${NODE_ENV}
working_dir: /home/app
depends_on:
- eclipse-mosquitto
- redis
networks:
- internal
eclipse-mosquitto:
container_name: eclipse-mosquitto-ysh
image: eclipse-mosquitto:2.0.18
hostname: docker-eclipse-mosquitto
ports:
- "${MQTT_HOST_PORT}:${MQTT_CONTAINER_PORT}"
- "${MQTT_WS_HOST_PORT}:${MQTT_WS_CONTAINER_PORT}"
volumes:
- eclipse_mosquitto_data:/mosquitto/data
- ./volumes/etc/mosquitto:/etc/mosquitto
- ./volumes/mosquitto/config/conf.d:/mosquitto/config/conf.d
- ./volumes/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./volumes/mosquitto/log:/mosquitto/log:delegated
networks:
- internal
redis:
container_name: redis-ysh
image: redis:7.4-rc1-alpine3.20
command: redis-server /usr/local/etc/redis/redis.conf
hostname: docker-redis
ports:
- "${REDIS_HOST_PORT}:${REDIS_CONTAINER_PORT}"
volumes:
- ./volumes/data:/data:delegated
- ./volumes/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf
- ./volumes/var/run:/var/run:delegated
networks:
- internal
volumes:
eclipse_mosquitto_data:
networks:
internal:
driver: bridge