Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-compose file to enable quick deployment using docker images #2832

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: '3.8'

services:
mysql:
image: mysql:8.0
container_name: texera_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: texera_db
MYSQL_USER: texera
MYSQL_PASSWORD: texera
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql # Named volume for MySQL data, you may modify this if you want to persist the data volumes outside the containers
- ./core/scripts/sql/texera_ddl.sql:/docker-entrypoint-initdb.d/init.sql

mongodb:
image: mongo:5.0
container_name: texera_mongodb
restart: always
environment:
MONGO_INITDB_DATABASE: texera_storage
command: mongod --storageEngine=wiredTiger
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db # Named volume for MongoDB data, you may modify this if you want to persist the data volumes outside the containers

texera_service:
image: texera/texera:usersys
container_name: texera_service
restart: always
depends_on:
- mysql
- mongodb
ports:
- "8080:8080"
volumes:
- texera_user_resources:/core/amber/user-resources # Named volume for texera user resources, you may modify this if you want to persist the data volumes outside the containers
healthcheck:
test: "curl --fail http://localhost:8080 || exit 1"
interval: 10s
retries: 10

volumes:
mysql_data:
mongodb_data:
texera_user_resources:
Loading