Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions home/modules/ROOT/pages/install/ce.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ include::{page-version}@home::partial$ce_docker.adoc[tag=start]

include::{page-version}@home::partial$ce_docker.adoc[tag=stop]

=== Docker Compose

include::{page-version}@home::partial$ce_docker.adoc[tag=docker-compose]

== Next steps

Now that you have TypeDB server running, you can connect with xref:{page-version}@tools::studio.adoc[TypeDB Studio] or xref:{page-version}@tools::console.adoc[TypeDB Console], or install and use a xref:{page-version}@home::install/drivers.adoc[Driver].
8 changes: 4 additions & 4 deletions home/modules/ROOT/pages/install/drivers.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ driver = TypeDB.driver(address=TypeDB.DEFAULT_ADDRESS, ...)

=== Python driver tutorial

* https://github.com/typedb/typedb-driver/python[typedb-driver/python on GitHub] - Read the TypeDB Python driver tutorial
* xref:{page-version}@examples::social-network.adoc[Read the Python app example]


== TypeScript (HTTP)
Expand Down Expand Up @@ -84,7 +84,7 @@ const driver = new TypeDBHttpDriver({

=== TypeScript HTTP driver example

* https://github.com/typedb/typedb-examples/tree/master/webapp[TypeSpace: Social Network Webapp Example] - Explore the TypeScript HTTP driver example on GitHub
* xref:{page-version}@examples::social-network.adoc[Read the TypeScript webapp example]


== Rust
Expand All @@ -109,7 +109,7 @@ let driver = TypeDBDriver::new_core(TypeDBDriver::DEFAULT_ADDRESS).await.unwrap(

=== Rust driver tutorial

* https://github.com/typedb/typedb-driver/rust[typedb-driver/rust on GitHub] - Read the TypeDB Rust driver tutorial
* xref:{page-version}@examples::social-network.adoc[Read the Rust app example]


== Java
Expand Down Expand Up @@ -152,7 +152,7 @@ try (Driver driver = TypeDB.driver(TypeDB.DEFAULT_ADDRESS, new Credentials("admi

=== Java driver tutorial

* https://github.com/typedb/typedb-driver/java[typedb-driver/java on GitHub] - Read the TypeDB Java driver tutorial
* xref:{page-version}@examples::social-network.adoc[Read the Java app example]


== Other languages
Expand Down
46 changes: 45 additions & 1 deletion home/modules/ROOT/partials/ce_docker.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,48 @@ To stop a running Docker container:
----
docker stop typedb
----
// end::stop[]
// end::stop[]

// tag::docker-compose[]

Alternatively, you can use Docker Compose to run TypeDB CE. Create a `docker-compose.yml` file:

[source,yaml]
----
version: '3.8'

services:
typedb:
image: typedb/typedb:latest
container_name: typedb
ports:
- "1729:1729"
- "8000:8000"
volumes:
- typedb-data:/opt/typedb-all-linux-x86_64/server/data

volumes:
typedb-data:
----

To start TypeDB with Docker Compose:

[source,bash]
----
docker-compose up -d
----

To stop TypeDB:

[source,bash]
----
docker-compose down
----

[NOTE]
====
If you are running the arm64 image, change the volume path to `/opt/typedb-all-linux-arm64/server/data`.
You can also replace `typedb-data` with a local path to mount a specific directory on your host machine.
====

// end::docker-compose[]