DEV Community

Cover image for Docker compose For Corteza
Mohammad Zakery
Mohammad Zakery

Posted on

1 1

Docker compose For Corteza

Configure docker-compose.yml

version: '3.5'

services:
  server:
    image: cortezaproject/corteza:${VERSION}
    restart: always
    env_file: [ .env ]
    depends_on: [ db ]
    ports: [ "127.0.0.1:18080:80" ]

  db:

    image: postgres:13
    restart: always
    healthcheck: { test: ["CMD-SHELL", "pg_isready -U corteza"], interval: 10s, timeout: 5s, retries: 5 }
    volumes:
      - "dbdata:/var/lib/postgresql/data"
    environment:
      POSTGRES_USER:     corteza
      POSTGRES_PASSWORD: corteza
Enter fullscreen mode Exit fullscreen mode

Create .env next to docker-compose.yml

Configure .env

DOMAIN=localhost:18080
VERSION=2022.9

DB_DSN=postgres://corteza:corteza@db:5432/corteza?sslmode=disable

HTTP_WEBAPP_ENABLED=true

ACTIONLOG_ENABLED=false
Enter fullscreen mode Exit fullscreen mode

Direct your browser to http://localhost:18080


Expose Corteza to your internal network and the world

If you want to use Corteza in production and with other users,Change the following code in docker-compose.yml as below :

ports: [ "0.0.0.0:18080:80" ]
Enter fullscreen mode Exit fullscreen mode

And Change the following code in .env as below :

DOMAIN=YOUR_PUBLIC_IP:18080
Enter fullscreen mode Exit fullscreen mode

Exposing external port

Edit .env to change the exposed port

DOMAIN=YOUR_PUBLIC or LOCAL_IP:8585
Enter fullscreen mode Exit fullscreen mode

Direct your browser to http://localhost:8585

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more