Skip to content

Commit

Permalink
docker-compose yml file updated 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ASabovic committed Sep 30, 2024
1 parent 00d42ab commit 235d112
Showing 1 changed file with 35 additions and 38 deletions.
73 changes: 35 additions & 38 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@
# version: '3.8'

# services:
# yottadb_container:
# image: yottadb/yottadb:latest
# container_name: yottadb_container
# environment:
# - ydb_dir=/data/yottadb
# - gtmdir=/data/yottadb # Make sure to set this variable to match ydb_dir
# volumes:
# - yotta_data:/data/yottadb
# command: |
# bash -c "
# source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
# ydb -run ^GDE &&
# ydb -run ^ZSY &&
# while true; do sleep 1000; done;
# "

# yottadb_init:
# depends_on:
# - yottadb_container
# image: yottadb/yottadb
# container_name: yottadb_init
# volumes:
# - yotta_data:/data/yottadb
# entrypoint: ["/bin/bash", "-c"]
# command: |
# "
# source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
# ydb -run \"SET ^myglobal('test')='Hello, YottaDB!'\" &&
# echo 'Value set in YottaDB: ^myglobal(test) = Hello, YottaDB!'
# "

# volumes:
# yotta_data:

version: '3'
services:
yottadb:
image: yottadb/yottadb:latest
container_name: yottadb_container
# environment:
# - ydb_dir=/data/yottadb
# - gtmdir=/data/yottadb
ports:
- "1337:1337"
environment:
- YOTTA_DB_PORT=1337
volumes:
- ./data:/data
- ./data:/data
command: |
bash -c "
source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
ydb -run ^GDE &&
ydb -run ^ZSY &&
while true; do sleep 1000; done;
"
yottadb_init:
depends_on:
- yottadb_container
image: yottadb/yottadb
container_name: yottadb_init
volumes:
- yotta_data:/data/yottadb
entrypoint: ["/bin/bash", "-c"]
command: |
"
source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
ydb -run \"SET ^myglobal('test')='Hello, YottaDB!'\" &&
echo 'Value set in YottaDB: ^myglobal(test) = Hello, YottaDB!'
"
volumes:
yotta_data:






0 comments on commit 235d112

Please sign in to comment.