Skip to content

Optionally disable caddy #84

@hexmode

Description

@hexmode

We're moving wikiapiary back to WMCloud, but this means we'll be sitting behind WMCloud's reverse proxy that provides SSL termination. As a result, we don't need Caddy and would like to disable it.

For now, I have gotten around this by adding the following to docker-compose.override.yml:

  varnish:
    ports:
      - 80:80

I've looked, but this is not a way to remove ports using the override file, so the startup looks like this:

$ sudo canasta start
2023/05/20 18:31:38 Using /etc/canasta for configuration...
Starting Canasta installation ''...
Creating network "wikiapiary_default" with the default driver
Creating wikiapiary_caddy_1 ... 
Creating wikiapiary_caddy_1         ... error
Creating wikiapiary_db_1      ... 
Creating wikiapiary_elasticsearch_1 ... 
Host is already in use by another container
Creating wikiapiary_varnish_1       ... done
Creating wikiapiary_db_1            ... done
Creating wikiapiary_elasticsearch_1 ... done
Creating wikiapiary_web_1           ... done

ERROR: for caddy  Cannot start service caddy: driver failed programming external connectivity on endpoint wikiapiary_caddy_1 (bc65595f04698b9e4f8c0bb671b9840b1a5dc8eab2de79bf0b8d7d6f62c46190): Bind for 0.0.0.0:80 failed: port is already allocated
Encountered errors while bringing up the project.

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