feat: add production docker-compose with hrynco-services network
- Base compose: explicit internal network, named volumes with VOLUME_PREFIX - docker-compose.prod.yml: production images, ports, restart policies, hrynco-services external network on rabbitmq - docker-compose.Development.yml: cleaned up orphan volumes, named dev volumes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -26,31 +26,22 @@ services:
|
||||
condition: service_healthy
|
||||
|
||||
rabbitmq:
|
||||
image: rabbitmq:4-management-alpine
|
||||
environment:
|
||||
RABBITMQ_DEFAULT_USER: guest
|
||||
RABBITMQ_DEFAULT_PASS: guest
|
||||
ports:
|
||||
- "5672:5672"
|
||||
- "15672:15672"
|
||||
healthcheck:
|
||||
test: ["CMD", "rabbitmq-diagnostics", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
- notification_rabbitmq:/var/lib/rabbitmq
|
||||
networks:
|
||||
- internal
|
||||
|
||||
db:
|
||||
image: postgres:17
|
||||
environment:
|
||||
POSTGRES_DB: notification_service
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
ports:
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- notification_db:/var/lib/postgresql/data
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
networks:
|
||||
- internal
|
||||
|
||||
seq:
|
||||
image: datalust/seq:2024
|
||||
@@ -60,9 +51,14 @@ services:
|
||||
ports:
|
||||
- "5342:80"
|
||||
volumes:
|
||||
- notification_seq:/data
|
||||
- seq_data:/data
|
||||
networks:
|
||||
- internal
|
||||
|
||||
volumes:
|
||||
notification_db:
|
||||
notification_seq:
|
||||
notification_rabbitmq:
|
||||
pgdata:
|
||||
name: ns-dev-pgdata
|
||||
rabbitmq_data:
|
||||
name: ns-dev-rabbitmq-data
|
||||
seq_data:
|
||||
name: ns-dev-seq
|
||||
Reference in New Issue
Block a user