mirror of
https://github.com/dominikhoebert/docker-projects.git
synced 2025-06-28 09:17:03 +00:00
97 lines
2.6 KiB
YAML
97 lines
2.6 KiB
YAML
|
|
||
|
name: databases
|
||
|
|
||
|
volumes:
|
||
|
mysql:
|
||
|
mysql8:
|
||
|
psql96:
|
||
|
psql13:
|
||
|
cockroachdb:
|
||
|
firebird:
|
||
|
|
||
|
services:
|
||
|
psql13:
|
||
|
image: postgres:13
|
||
|
environment:
|
||
|
POSTGRES_USER: postgres
|
||
|
POSTGRES_PASSWORD: example
|
||
|
POSTGRES_DB: test
|
||
|
volumes:
|
||
|
- psql13:/var/lib/postgresql/data
|
||
|
- ./dev/docker_psql_init:/docker-entrypoint-initdb.d
|
||
|
ports:
|
||
|
- 5433:5432
|
||
|
psql:
|
||
|
image: postgres:9.6
|
||
|
environment:
|
||
|
POSTGRES_USER: postgres
|
||
|
POSTGRES_PASSWORD: example
|
||
|
POSTGRES_DB: test
|
||
|
volumes:
|
||
|
- psql96:/var/lib/postgresql/data
|
||
|
- ./dev/docker_psql_init:/docker-entrypoint-initdb.d
|
||
|
ports:
|
||
|
- 5434:5432
|
||
|
mysql8:
|
||
|
image: mysql:8.0.21
|
||
|
command: --default-authentication-plugin=mysql_native_password
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: example
|
||
|
MYSQL_DATABASE: test
|
||
|
ports:
|
||
|
- 3308:3306
|
||
|
volumes:
|
||
|
- mysql8:/var/lib/mysql
|
||
|
- ./dev/docker_mysql_init:/docker-entrypoint-initdb.d
|
||
|
mysql:
|
||
|
image: mysql:5.7.22
|
||
|
command: --default-authentication-plugin=mysql_native_password
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: example
|
||
|
MYSQL_DATABASE: test
|
||
|
ports:
|
||
|
- 3307:3306
|
||
|
volumes:
|
||
|
- mysql:/var/lib/mysql
|
||
|
- ./dev/docker_mysql_init:/docker-entrypoint-initdb.d
|
||
|
cockroachdb:
|
||
|
image: cockroachdb/cockroach:v22.1.1
|
||
|
volumes:
|
||
|
- cockroachdb:/cockroach/cockroach-data
|
||
|
ports:
|
||
|
- 26257:26257
|
||
|
command: start-single-node --insecure
|
||
|
cassandra:
|
||
|
image: cassandra:latest
|
||
|
entrypoint: ["/docker-entrypoint.initdb.d/entry.sh"]
|
||
|
ports:
|
||
|
- 9042:9042
|
||
|
volumes:
|
||
|
- cassandra:/var/lib/cassandra
|
||
|
- ./dev/docker_cassandra_init:/docker-entrypoint.initdb.d
|
||
|
# use keyspace; describe tables; # get all the tables for a specific keyspace
|
||
|
# select * from system_schema.keyspaces; # gets all keyspaces
|
||
|
# https://www.folkstalk.com/2022/09/get-all-keyspaces-in-cassandra-with-code-examples.html
|
||
|
# Create keyspace https://www.tutorialspoint.com/cassandra/cassandra_create_keyspace.htm
|
||
|
firebird:
|
||
|
image: jacobalberty/firebird:v4.0.1
|
||
|
volumes:
|
||
|
- ./dev/docker_firebird:/docker_init
|
||
|
ports:
|
||
|
- 3050:3050
|
||
|
environment:
|
||
|
- ISC_PASSWORD=masterkey
|
||
|
- EnableLegacyClientAuth=true
|
||
|
command: sh -c 'chmod +x /docker_init/entrypoint.sh; /docker_init/entrypoint.sh & /usr/local/firebird/docker-entrypoint.sh firebird;'
|
||
|
libsql:
|
||
|
image: ghcr.io/tursodatabase/libsql-server:latest
|
||
|
platform: linux/amd64
|
||
|
ports:
|
||
|
- 8098:8080
|
||
|
- 5001:5001
|
||
|
# environment:
|
||
|
# - SQLD_NODE=primary
|
||
|
# volumes:
|
||
|
# - ./dev/docker_libsql:/var/lib/sqld
|