Skip to content

docker-compose-yml complete deployment #29

@mStirner

Description

@mStirner

Create a "complete" deployment docker compose file, which start:

  • mongodb
  • backend
  • frontend
  • connector
  • nginx
version: "2"
services:
  nginx:
    image: "nginx:1.23.2-alpine"
    volumes:
      - "./nginx.conf:/etc/nginx/nginx.conf"
    ports:
      - "80:80"
      - "443:443"
  database:
    image: mongo
    ports:
      - "27017:27017"
  backend:
    image: "openhaus/backend:latest"
    environment:
      - NODE_ENV=production
      - DATABASE_HOST=database
      - UUID=00000000-0000-0000-0000-000000000000
      - VAULT_MASTER_PASSWORD=Pa$$w0rd
    ports:
      - "8080:8080"
    depends_on:
      - database
      - nginx
  frontend:
    image: "openhaus/frontend:latest"
    ports:
      - "3000:3000"
    depends_on:
      - backend
      - nginx
  connector:
    image: "openhaus/connector:latest"
    depends_on:
      - backend
    net: host

"Pseudo" config, not tested and may contain bugs.
This was just a quick draft.

https://business-science.github.io/shiny-production-with-aws-book/https-nginx-docker-compose.html

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