完善docker compose 配置文件

This commit is contained in:
2024-03-28 22:09:16 +08:00
parent 39587fff15
commit f7328f2498
2 changed files with 21 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
services:
pg:
image: postgres
image: timescale/timescaledb-ha:pg16
ports:
- "5432:5432"
environment:
@@ -26,6 +26,18 @@ services:
- redis-server
- /etc/redis/redis.conf
rabbitmq:
image: rabbitmq:3.13-management-alpine
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq/
- rabbitmq_log:/var/log/rabbitmq
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
networks:
- dn
networks:
dn:
@@ -36,4 +48,6 @@ networks:
volumes:
pg_data:
redis_data:
rabbitmq_data:
rabbitmq_log:

6
docker/dev/rabbitmq.conf Normal file
View File

@@ -0,0 +1,6 @@
loopback_users.guest = false
listeners.tcp.default = 5672
default_pass = coal
default_user = coal
default_vhost = /coal
management.tcp.port = 15672