Closed moraleseder1 closed 9 months ago
Hello @moraleseder1! The Compose is looking for .env
file and is unable to do so in the working directory.
You can always go to Stacks > Add stack
in Portainer. Then place the contents of docker-compose.yml
into the web editor while removing env_file: .env
part for pocketbase
and grimoire
services. After this part, you can just add your env variables in the Environment variables section, review all input, and press the Deploy the stack button.
Hi @goniszewski and thank you for your response and I apologize ahead of time since I am very new to docker compose. Is this what you mean?
version: '3.7' services: pocketbase: image: spectado/pocketbase:0.19.2 container_name: grimoire-pocketbase restart: unless-stopped ports:
grimoire: image: goniszewski/grimoire:latest container_name: grimoire restart: unless-stopped
environment:
Yes, it should work. For the future, please use the code tag as it will help us reading your code.
Describe the bug Error regarding .env file
To Reproduce Here is my compose file
version: '3.7' services: pocketbase: image: spectado/pocketbase:0.19.2 container_name: grimoire-pocketbase restart: unless-stopped ports:
Desktop (please complete the following information):
Additional context I'm trying to deploy this using portainer but I get this error message
Deployment error failed to deploy a stack: Failed to load /data/compose/47/.env: open /data/compose/47/.env: no such file or directory