mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
完善docker compose 配置
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
pg:
|
||||
image: postgres
|
||||
image: timescale/timescaledb-ha:pg16
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
@@ -10,7 +10,7 @@ services:
|
||||
networks:
|
||||
- dn
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
- pg_data:/home/postgres
|
||||
|
||||
|
||||
redis:
|
||||
@@ -26,19 +26,18 @@ services:
|
||||
- redis-server
|
||||
- /etc/redis/redis.conf
|
||||
|
||||
coal:
|
||||
image: coal:master
|
||||
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
|
||||
environment:
|
||||
PG_HOST: pg
|
||||
REDIS_HOST: redis
|
||||
volumes:
|
||||
- spring_data:/data
|
||||
ports:
|
||||
- "7456:7456"
|
||||
command:
|
||||
- --spring.profiles.active=master
|
||||
|
||||
|
||||
networks:
|
||||
dn:
|
||||
@@ -49,5 +48,6 @@ networks:
|
||||
volumes:
|
||||
pg_data:
|
||||
redis_data:
|
||||
spring_data:
|
||||
rabbitmq_data:
|
||||
rabbitmq_log:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user