gogoout / vrising-server-arm64

V Rising server running on arm64 using FexEmu and Wine
MIT License
6 stars 0 forks source link

ERROR: The Compose file './docker-compose.yml' is invalid because: 'True' does not match any of the regexes: '^x-' #3

Closed iZarrios closed 3 months ago

iZarrios commented 3 months ago

Running docker-compose up results in the following error.

ERROR: The Compose file './docker-compose.yml' is invalid because:
'True' does not match any of the regexes: '^x-'

You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
expand_more
edit

Here is my docker-compose.yml file which I copied from Here (I just changed the data and server paths).

version: '1.0'
services:
  vrising:
    stdin_open: true # equivalent of -i
    tty: true        # equivalent of -t
    # build: . # Build from Dockerfile
    restart: unless-stopped
    container_name: vrising
    labels:
      vrising-app: true
    image: gogoout/vrising-arm64
    network_mode: bridge
    environment:
      - TZ=Asia/Tokyo
    volumes:
      - '/home/ubuntu/vrising/server:/vrising/server:rw'
      - '/home/ubuntu/vrising/data:/vrising/data:rw'
    ports:
      - '9876:9876/udp'
      - '9877:9877/udp'
      - '25575:25575/tcp'
  autoheal:
    restart: always
    image: willfarrell/autoheal
    environment:
      - AUTOHEAL_CONTAINER_LABEL=vrising-app
      - AUTOHEAL_INTERVAL=15
      - AUTOHEAL_ONLY_MONITOR_RUNNING=true
      - AUTOHEAL_START_PERIOD=600
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

Running docker-compose version.

docker-compose version 1.29.2, build unknown
docker-py version: 5.0.3
CPython version: 3.10.12
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022

Note: I managed to fix it by changing the version in the yaml file from '1.0' to '3.8'.

gogoout commented 3 months ago

Thanks, have updated readme