Skip to content

Commit

Permalink
add the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbai00 committed Sep 12, 2024
1 parent d397133 commit 14f9685
Showing 1 changed file with 50 additions and 0 deletions.
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 --batchSize=1000
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-1.0
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:

0 comments on commit 14f9685

Please sign in to comment.