User:Addshore/sandbox

From mediawiki.org

mw docker custom[edit]

custom service

Synopsis[edit]

Custom docker-compose services[edit]

You can define your own docker-compose file in a custom.yml file. This file should be created in the location returned by the mw docker custom where command.

Example internal service[edit]

This service will be accessible within the docker-compose network to other services.

version: '3.7'
services:
  <service-name>:
    image: <service-image>
    dns:
      - 10.0.0.10
    networks:
      - dps

Example web service[edit]

This services will be accessible on your host machine via the virtual host specified.

version: '3.7'
services:
  <service-name>:
    image: <service-image>
    environment:
      - VIRTUAL_HOST=<service-name>.mwdd.localhost,<service-name>.mwdd
      - VIRTUAL_PORT=<service-port>
    depends_on:
      - nginx-proxy
    dns:
      - 10.0.0.10
    networks:
      - dps

Note: If you use the docker hosts file integration, you may need to manually add this host to gain access.

Options inherited from parent commands[edit]

      --help             help for this command
      --no-interaction   Do not ask any interactive questions
      --verbosity int    verbosity level (1-2) (default 1)

SEE ALSO[edit]