docker-compose.yml 550 B

123456789101112131415161718192021222324252627
  1. version: "3"
  2. services:
  3. eureka_config:
  4. image: registry.cn-hangzhou.aliyuncs.com/tuon/eureka_config:1.0.1
  5. ports:
  6. - "12121:12121"
  7. expose:
  8. - "12121"
  9. container_name: eureka_config
  10. environment:
  11. - spring.profiles.active=sit,jdbc
  12. - "JAVA_OPTS=-Xmx512m -Xms256m"
  13. volumes:
  14. - /data/logs:/logs
  15. - "/etc/localtime:/etc/localtime:ro"
  16. deploy:
  17. restart_policy:
  18. condition: on-failure
  19. resources:
  20. limits:
  21. memory: 768m
  22. reservations:
  23. memory: 256m