32 lines
836 B
YAML
32 lines
836 B
YAML
services:
|
|
hawkbit-backend:
|
|
image: hawkbit/hawkbit-update-server:local
|
|
container_name: hawkbit-backend
|
|
ports:
|
|
- "6060:8080"
|
|
restart: unless-stopped
|
|
command: >
|
|
--hawkbit.dmf.rabbitmq.enabled=false
|
|
--hawkbit.server.ddi.security.authentication.anonymous.enabled=true
|
|
environment:
|
|
JAVA_TOOL_OPTIONS: "-Xms512m -Xmx1024m"
|
|
networks:
|
|
hawk_default_net:
|
|
|
|
hawkbit-ui:
|
|
image: hawkbit/hawkbit-ui:local
|
|
container_name: hawkbit-ui
|
|
ports:
|
|
- "6081:8088"
|
|
restart: unless-stopped
|
|
command: -jar app.jar --hawkbit.server.url=http://hawkbit-backend:8080
|
|
environment:
|
|
JAVA_TOOL_OPTIONS: "-Xms256m -Xmx512m"
|
|
networks:
|
|
hawk_default_net:
|
|
|
|
# 显式定义共享网桥,两个服务强制加入同一网络
|
|
networks:
|
|
hawk_default_net:
|
|
driver: bridge
|