Skip to content

Commit

Permalink
Add example docker-compose.yml for os.com article
Browse files Browse the repository at this point in the history
  • Loading branch information
darh committed Jul 18, 2019
1 parent 4d59835 commit b44bdd6
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions deploy/docker-compose/example-2019-07-os.com/docker-compose.yml
@@ -0,0 +1,44 @@
version: '2.0'

services:
db:
image: percona:8.0
environment:
MYSQL_DATABASE: corteza
MYSQL_USER: corteza
MYSQL_PASSWORD: oscom-tutorial
MYSQL_ROOT_PASSWORD: supertopsecret

server:
image: cortezaproject/corteza-server:latest

# Map internal 80 port (where Corteza API is listening)
# to external port 10080. If you change this, make sure you change API_BASEURL setting below
ports: [ "10080:80" ]

environment:
# Tell corteza-server where can it be reached from the outside
VIRTUAL_HOST: localhost:10080

# Serving the app from the localhost port 20080 is not very usual setup,
# this will override settings auto-discovery procedure (provision) and
# use custom values for frontend URL base
PROVISION_SETTINGS_AUTH_FRONTEND_URL_BASE: http://localhost:20080

# Database connection, make sure username, password, and database matches values in the db service
DB_DSN: corteza:oscom-tutorial@tcp(db:3306)/corteza?collation=utf8mb4_general_ci

webapp:
image: cortezaproject/corteza-webapp:latest

# Map internal 80 port (where we serve the web application)
# to external port 20080.
ports: [ "20080:80" ]

environment:
# Where API can be found
API_BASEURL: localhost:10080

# We're using one service for the API
MONOLITH_API: 1

0 comments on commit b44bdd6

Please sign in to comment.