github.com/gogf/gf/v2@v2.7.4/.github/workflows/nacos/docker-compose.yml (about) 1 version: "3.8" 2 3 services: 4 nacos: 5 image: loads/nacos-server:v2.1.2 6 container_name: nacos 7 env_file: 8 - ./env/nacos.env 9 ports: 10 - "8848:8848" 11 - "9848:9848" 12 - "9555:9555" 13 healthcheck: 14 test: [ "CMD", "curl" ,"http://localhost:8848/nacos" ] 15 interval: 5s 16 timeout: 3s 17 retries: 10 18 19 initializer: 20 image: loads/curl:latest 21 depends_on: 22 nacos: 23 condition: service_healthy 24 command: [ "sh", "-c", "curl -X POST 'http://nacos:8848/nacos/v1/cs/configs?dataId=config.toml&group=test&content=%5Bserver%5D%0A%09address%3D%22%3A8000%22'" ]