Skip to content

env_file fails to find file on host machine when deployed #94

Open
@ADRFranklin

Description

@ADRFranklin

after testing a little bit with this, it seems when deploying with pico, docker compose is unable to find env files on the host system, which can be confirmed when you copy pico's params that are passed to docker compose and run them yourself.

Pico's Attempt:

{"level":"debug","ts":"2021-11-05T21:44:48.560Z","caller":"executor/cmd.go:101","msg":"executing with secrets","target":"pico-pterodactyl-panel","cmd":["docker-compose","up","-d"],"url":"https://gitlab.com/xxx/pico-pterodactyl-panel","dir":"/cache/pico-pterodactyl-panel","env":{"DATA_DIR":"/storage","DOMAIN_NAME":"xxx","HOSTNAME":"local-01","MACHINE_NAME":"local-01"},"passthrough":false}
Couldn't find env file: /storage/pterodactyl/conf.d/panel.env

Manual Attempt:

 DATA_DIR=/storage HOSTNAME="local-01" DOMAIN_NAME="xxx" docker-compose up -d
Creating network "pico-pterodactyl-panel_default" with the default driver
Pulling cache (redis:alpine)...
alpine: Pulling from library/redis
a0d0a0d46f8b: Already exists

as seen from above, running manually works perfectly fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions