Organizr / docker-organizr

Docker image for Organizr
GNU General Public License v3.0
96 stars 12 forks source link

Fresh docker-compose install won't start when supplying the "branch" environment variable #20

Closed cewert closed 3 years ago

cewert commented 3 years ago

I am setting up a new install of organizr using the following docker-compose config:

    image: organizr/organizr
    container_name: organizr
    environment:
      - PUID=988
      - PGID=987
      - fpm="false" # use socket connections instead of TCP
      - branch="v2-master"
    volumes:
      - /xxx/xxx/xxx:/config
    ports:
      - 80:80
    network_mode: "xxx"
    restart: unless-stopped

...but organizr fails to start with the following error:


[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-setup: executing... 
[cont-init.d] 30-setup: exited 0.
[cont-init.d] 40-install: executing... 
"v2-master" is not a valid branch, exiting
[cont-init.d] 40-install: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting

To get my install working I just commented out the branch variable like so:

organizr:
    image: organizr/organizr
    container_name: organizr
    environment:
      - PUID=988
      - PGID=987
      - fpm="false" # use socket connections instead of TCP
      #- branch="v2-master"
    volumes:
      - /xxx/xxx/xxx:/config
    ports:
      - 80:80
    network_mode: "xxx"
    restart: unless-stopped
Roxedus commented 3 years ago

Your quotes are wrong. You have to quote the whole key-value pair when using that compose syntax.

cewert commented 3 years ago

Ahh good call. Thank you!

For anyone that stumbles on this in the future, here's my now working config:

organizr:
    image: organizr/organizr
    container_name: organizr
    environment:
      - PUID=988
      - PGID=987
      - fpm=false # use socket connections instead of TCP
      - TZ=America/New_York
      - branch=v2-master #valid values are v2-master, master, v2-develop, develop
    volumes:
      - /xxx/xxx/xxx:/config
    ports:
      - 80:80
    network_mode: "xxx"
    restart: unless-stopped