Skip to content

Instantly share code, notes, and snippets.

@tjerman
Created April 19, 2022 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjerman/2ddb7265fc8c5336d2a8326b716a5a0e to your computer and use it in GitHub Desktop.
Save tjerman/2ddb7265fc8c5336d2a8326b716a5a0e to your computer and use it in GitHub Desktop.
########################################################################################################################
# docker-compose supports environment variable interpolation/substitution in compose configuration file
# (more info: https://docs.docker.com/compose/environment-variables)
########################################################################################################################
# General settings
DOMAIN=localhost:18083
VERSION=2022.3.0
# VERSION=2021.9.9
LOG_LEVEL=debug
LOG_DEBUG=true
DB_LOGGER=true
HTTP_ENABLE_DEBUG_ROUTE=true
WORKFLOW_EXEC_DEBUG=false
########################################################################################################################
# Database connection
DB_DSN=dbuser:dbpass@tcp(db:3306)/dbname?collation=utf8mb4_general_ci
########################################################################################################################
# Server settings
# Running all-in-one and serving web applications directly from server container
HTTP_WEBAPP_ENABLED=true
# Disabled, we do not need detailed persistent logging of actions in local env
ACTIONLOG_ENABLED=true
AUTH_PASSWORD_SECURITY=false
####### LOOK HERE #######
CORREDOR_ENABLED=true
# The path to your extension based on the mounted volume
CORREDOR_EXT_SEARCH_PATHS=/extensions/foo
CORREDOR_LOG_ENABLED=true
CORREDOR_LOG_PRETTY=true
CORREDOR_LOG_LEVEL=info
# To let Corredor know where the server lives
CORREDOR_EXEC_CSERVERS_API_HOST=server:80/api
CORREDOR_EXEC_CSERVERS_API_BASEURL_TEMPLATE="server:80/api/{service}"
# To let server know where Corredor lives
CORREDOR_ADDR=corredor:53051
version: '3.5'
services:
server:
image: cortezaproject/corteza:${VERSION}
restart: always
env_file: [ .env ]
depends_on: [ db ]
ports: [ "127.0.0.1:18083:80" ]
networks: [ internal ]
corredor:
env_file: [ .env ]
image: cortezaproject/corteza-server-corredor:${VERSION}
restart: on-failure
networks: [ internal ]
volumes:
- "./custom-extensions:/extensions"
db:
image: percona:8.0
restart: always
volumes:
- "dbdata:/var/lib/mysql"
environment:
MYSQL_DATABASE: dbname
MYSQL_USER: dbuser
MYSQL_PASSWORD: dbpass
# get the random generated password by running: docker-compose logs db | grep "GENERATED ROOT PASSWORD"
MYSQL_RANDOM_ROOT_PASSWORD: random
healthcheck: { test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"], timeout: 20s, retries: 10 }
networks: [ internal ]
volumes:
dbdata:
networks: { internal: {} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment