72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
services:
|
|
# wikipedia-solver-database:
|
|
# container_name: "wikipedia-solver-database"
|
|
# image: "postgres:16.3"
|
|
# restart: "unless-stopped"
|
|
# env_file: ".env"
|
|
# environment:
|
|
# POSTGRES_USER: ${DATABASE_USER}
|
|
# POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
|
# POSTGRES_DB: ${DATABASE_NAME}
|
|
# volumes:
|
|
# - "wikipedia-solver-postgres-data:/var/lib/postgresql/data"
|
|
# - "./sql:/docker-entrypoint-initdb.d/"
|
|
|
|
wikipedia-solver-database:
|
|
container_name: "wikipedia-solver-database"
|
|
image: "mariadb:10.6.17"
|
|
restart: "unless-stopped"
|
|
env_file: ".env"
|
|
environment:
|
|
MARIADB_USER: ${DATABASE_USER}
|
|
MARIADB_PASSWORD: ${DATABASE_PASSWORD}
|
|
MARIADB_ROOT_PASSWORD: ${DATABASE_PASSWORD}
|
|
MARIADB_DATABASE: ${DATABASE_NAME}
|
|
command:
|
|
--innodb_buffer_pool_size=4G
|
|
--innodb_log_buffer_size=256M
|
|
--innodb_log_file_size=1G
|
|
--innodb_write_io_threads=16
|
|
--innodb_flush_log_at_trx_commit=0
|
|
--max_allowed_packet=1G
|
|
volumes:
|
|
- "wikipedia-solver-mariadb-data:/var/lib/mysql"
|
|
- "./sql:/docker-entrypoint-initdb.d/"
|
|
|
|
adminer:
|
|
container_name: "adminer"
|
|
image: "adminer:4.8.1"
|
|
restart: "unless-stopped"
|
|
ports:
|
|
- "8080:8080"
|
|
env_file: ".env"
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: "wikipedia-solver-database"
|
|
volumes:
|
|
- "./adminer/default-orange.css:/var/www/html/adminer.css"
|
|
- "./adminer/logo.png:/var/www/html/logo.png"
|
|
- "./adminer/fonts/:/var/www/html/fonts"
|
|
|
|
# dbgate:
|
|
# image: "dbgate/dbgate:5.3.3"
|
|
# restart: "always"
|
|
# ports:
|
|
# - "8080:3000"
|
|
# volumes:
|
|
# - "dbgate-data:/root/.dbgate"
|
|
# environment:
|
|
# CONNECTIONS: "con1"
|
|
|
|
# LABEL_con1: "Postgres"
|
|
# SERVER_con1: "wikipedia-solver-database"
|
|
# USER_con1: ${DATABASE_USER}
|
|
# PASSWORD_con1: ${DATABASE_PASSWORD}
|
|
# PORT_con1: 5432
|
|
# ENGINE_con1: "postgres@dbgate-plugin-postgres"
|
|
|
|
volumes:
|
|
wikipedia-solver-mariadb-data:
|
|
# wikipedia-solver-postgres-data:
|
|
# dbgate-data:
|
|
# driver: "local"
|