Thursday 1 October 2020

A dockerized web application, status

The first steps are taken and currently we have a tiny web application up and running with the following components:

  • objectstore
a simple database front end providing a REST API

  • dbserver_entity

a MySQL database

  • crudapp

which is simply a container with a python web server that serves static content. It'll do for now.

These services are linked and exposed through the following docker-compose.yml


version: '3.7'

services:

  dbserver_entity:
    image: dbserver_entity
    # no exposed ports
    networks:
      - appnetwork
    environment:
      - MYSQL_ROOT_PASSWORD=secret

  objectstore:
    image: objectstore
    ports:
      - 5555:5555
    networks:
      - appnetwork
    depends_on:
      - dbserver_entity
    restart: on-failure

  crudapp:
    image: crudapp
    ports:
      - 8000:8000
    networks:
      - appnetwork
    depends_on:
      - objectstore
    restart: on-failure

networks:
  appnetwork:
To illustrate what we have so far the following picture might be helpful

No comments:

Post a Comment