version: "3.1" services: oceanbase: image: oceanbase/oceanbase-ce:4.3.0 networks: - test_net environment: - MINI_MODE=1 - TZ=Asia/Shanghai - OB_ROOT_PASSWORD=Ocean@123 ports: - 2881:2881 - 2882:2882 hostname: oceanbase privileged: true # volumes: # - /etc/localtime:/etc/localtime restart: always deploy: resources: limits: cpus: '8' memory: 16G reservations: cpus: '8' memory: 16G networks: test_net: external: true