Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. docker-compose.override.yml is being ignored

docker-compose.override.yml is being ignored

Added by Kolossale Klobrille over 2 years ago

I'm trying to setup some additional env variables for openproject docker like it's described here: https://www.openproject.org/docs/installation-and-operations/configuration/
But whatever additional env variable I add to the docker-compose.override.yml is being ignored. For instance:

version: "3.5"

x-op-app: &app
  environment:
    OPENPROJECT_SMTP__ADDRESS: "mail.gmx.net"

does not work, but adding it to the original docker-compose.yml does work.
Weirdly, setting a different option for db in docker-compose.override.yml works fine:

version: "3.5"

services:
  db:
    user: "1009:1009"

This successfully runs the database user as 1009 and all files created by that service are owned by UID 1009.

So docker-compose is picking up the right file, it just seems to ignore env variables for openproject for some reason.
My system is:

docker --version
Docker version 20.10.12, build 20.10.12-0ubuntu2~18.04.1

docker-compose --version
docker-compose version 1.21.2, build a133471

Any idea why the env variables for x-op-app aren't picked up?


Replies (1)

RE: docker-compose.override.yml is being ignored - Added by Juan Pablo Vertiz about 2 years ago

Hi, 

Docker Compose is not ignoring your file neither the environment variables.

You have to insert the app reference in the docker-compose.override.yml file the same way as in the docker-compose.yml file so Docker Compose can properly override the environment node of the services:

version: "3.5"

x-op-app: &app
  environment:
    OPENPROJECT_SMTP__ADDRESS: "mail.gmx.net"

services:
  web:
    <<: *app

  worker:
    <<: *app

  cron:
    <<: *app

  seeder:
    <<: *app

Hope this helps.

  • (1 - 1/1)
Loading...