blob: 3718df8b6424edbe293d20ea4c2d4670ea50961d [file] [log] [blame]
version: "3"
services:
activemq:
image: rmohr/activemq:5.14.5
container_name: activemq
ports:
- "61616:61616"
- "8161:8161"
environment:
ACTIVEMQ_CONFIG_MINMEMORY: 512
ACTIVEMQ_CONFIG_MAXMEMORY: 1024
healthcheck:
test: curl -u admin:admin -s http://localhost:8161/admin || exit 1
interval: 1m
retries: 5
deploy:
replicas: 1
restart_policy:
condition: any
delay: 10s
max_attempts: 3
eureka:
image: anh3h/eureka-server:latest
container_name: eureka
ports:
- "8761:8761"
healthcheck:
test: curl -f http://eureka:8761 || exit 1
interval: 1m
retries: 5
deploy:
replicas: 1
restart_policy:
condition: any
delay: 10s
max_attempts: 3
postgres:
image: postgres:11
container_name: postgres
command:
- "postgres"
- "-c"
- "max_connections=200"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres-volume:/var/lib/postgresql/data
cassandra:
image: cassandra:3.11
container_name: cassandra
ports:
- "9042:9042"
healthcheck:
test: cqlsh ping -h cassandra
interval: 1m
retries: 5
deploy:
replicas: 1
restart_policy:
condition: any
delay: 10s
max_attempts: 3
volumes:
- cassandra-volume:/var/lib/cassandra
volumes:
cassandra-volume:
postgres-volume:
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.16.238.64/26