Skip to content

Instantly share code, notes, and snippets.

@tjerman
Created May 9, 2022 09:28
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/ee8dc9d7349e1edb8e0f18e3fe01711c to your computer and use it in GitHub Desktop.
Save tjerman/ee8dc9d7349e1edb8e0f18e3fe01711c 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(db2: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
# LOCALE_LANGUAGES="en,de,it"
# LOCALE_RESOURCE_TRANSLATIONS_ENABLED=true
AUTH_PASSWORD_SECURITY=false
CORREDOR_ENABLED=true
CORREDOR_EXT_SEARCH_PATHS=/extensions/foo
CORREDOR_EXEC_CSERVERS_API_HOST=server:80/api
CORREDOR_LOG_ENABLED=true
CORREDOR_LOG_PRETTY=true
CORREDOR_LOG_LEVEL=info
CORREDOR_EXEC_CSERVERS_API_BASEURL_TEMPLATE="server:80/api/{service}"
CORREDOR_ADDR=corredor:53051
TEMPLATE_RENDERER_GOTENBERG_ADDRESS=http://gotenberg:3000
TEMPLATE_RENDERER_GOTENBERG_ENABLED=true
########################################################################################################################
# SMTP (mail sending) settings
# Point this to your local or external SMTP server if you want to send emails.
# In most cases, Corteza can detect that SMTP is disabled and skips over sending emails without an error
#SMTP_HOST=smtp-server.example.tld:587
#SMTP_USER=postmaster@smtp-server.example.tld
#SMTP_PASS=this-is-your-smtp-password
#SMTP_FROM='"Demo" <info@your-demo.example.tld>'
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"
gotenberg:
image: thecodingmachine/gotenberg:6
networks: [ internal ]
restart: on-failure
db2:
image: percona:8.0
restart: always
volumes:
- "dbdata2:/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_ROOT_PASSWORD: rootko
healthcheck: { test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"], timeout: 20s, retries: 10 }
networks: [ internal ]
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_ROOT_PASSWORD: rootko
healthcheck: { test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"], timeout: 20s, retries: 10 }
networks: [ internal ]
volumes:
dbdata:
dbdata2:
networks: { internal: {} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment