Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker-compose.yml test setup
version: '2'
services:
spring-boot-jdk:
image: "spring-boot-jdk"
container_name: spring-boot-jdk
ports:
- "8080:8080"
networks:
- dockernet
mem_limit: 1024M
prometheus:
image: "prom/prometheus"
ports:
- "9090:9090"
volumes:
- ./prom-jdks.yml:/etc/prometheus/prometheus.yml
container_name: prometheus
networks:
- dockernet
grafana:
image: "grafana/grafana"
ports:
- "3000:3000"
container_name: grafana
networks:
- dockernet
networks:
dockernet:
driver: bridge
ipam:
config:
- subnet: 192.168.0.0/24
gateway: 192.168.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.