Sign inSign up

datagov/catalog-nginx

By datagov

Updated about 8 years ago

catalog.data.gov nginx

Image
0

569

datagov/catalog-nginx repository overview

catalog-nginx

See Main Project

This container proxies to the catalog-app (app) and pycsw. The container can't run on its own because the backing service containers need to be running. For development and testing, we create a backend container that returns some simple data.

Usage

Add this to your docker-compose:

services:
  nginx:
    environment:
      APP_HOST: app
      APP_PORT: <app-port>
      PYCSW_HOST: pycws
      PYCSW_PORT: <pycws-port>
    depends_on:
      - app
      - pycsw

Development

Build the container.

$ make build

Start the container. Note: nginx doesn't produce any output on startup.

$ make up

Run the tests.

$ make test

Open a shell in the nginx container for debugging.

$ docker-compose exec nginx bash

Stop the containers and cleanup their volumes.

$ make clean

Tag summary

Content type

Image

Digest

Size

54.6 MB

Last updated

about 8 years ago

docker pull datagov/catalog-nginx