docker-compose/examples/drawio/compose.yaml

50 lines
1.2 KiB
YAML
Raw Normal View History

version: "3.9"
services:
drawio:
2024-10-11 01:18:00 +08:00
image: jgraph/drawio:24.7.17
container_name: drawio
hostname: drawio
restart: always
networks:
- app_network
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
environment:
- DRAWIO_SELF_CONTAINED=1
- DRAWIO_BASE_URL="drawio:8080"
- EXPORT_URL="export-server:8000"
- PLANTUML_URL="plantuml-server:8080"
export-server:
image: jgraph/export-server:latest
container_name: export-server
restart: always
networks:
- app_network
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
- ./fonts:/usr/share/fonts/drawio
environment:
- DRAWIO_SERVER_URL="drawio:8080"
plantuml-server:
2024-10-11 01:18:00 +08:00
image: plantuml/plantuml-server:v1.2024.7
container_name: plantuml-server
restart: always
networks:
- app_network
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
- ./fonts:/usr/share/fonts/drawio
networks:
app_network:
name: app_network
external: true
# driver: bridge
# driver_opts:
# encrypted: 'true'
# ipam:
# driver: default
# config:
# - subnet: 10.21.23.1/24