osl-incubator / scicookie

Cookiecutter template for a Python package.
https://osl-incubator.github.io/scicookie
Other
10 stars 18 forks source link

Review the output using docker option #288

Open xmnlab opened 1 month ago

xmnlab commented 1 month ago

Using the docker option, it raises an error with the content of the compose.yaml file

containers/compose.yaml
[error] containers/compose.yaml: SyntaxError: Map keys must be unique; "volumes" is repeated (5:5)
[error]    3 | services:
[error]    4 |   web:
[error] >  5 |     build: .
[error]      |     ^^^^^^^^
[error] >  6 |     ports:
[error]      | ^^^^^^^^^^
[error] >  7 |       - "5000:5000"
[error]      | ^^^^^^^^^^
[error] >  8 |     volumes:
[error]      | ^^^^^^^^^^
[error] >  9 |       - .:/code
[error]      | ^^^^^^^^^^
[error] > 10 |
[error]      | ^^^^^^^^^^
[error] > 11 |     postgres-db:
[error]      | ^^^^^^^^^^
[error] > 12 |     image: postgres
[error]      | ^^^^^^^^^^
[error] > 13 |     environment:
[error]      | ^^^^^^^^^^
[error] > 14 |       POSTGRES_USER: ${POSTGRES_USER}
[error]      | ^^^^^^^^^^
[error] > 15 |       POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
[error]      | ^^^^^^^^^^
[error] > 16 |     volumes:
[error]      | ^^^^^^^^^^
[error] > 17 |       - ./tmp/db:/var/lib/postgresql/data
[error]      | ^^^^^^^^^^
[error] > 18 |
[error]      | ^