From a79d2f020fecb036ba1efe13d205ca6bad834771 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 7 May 2021 20:41:41 -0400 Subject: [PATCH] fixes --- Docker/Composer/Cassandra/docker-compose.yml | 9 ++++++++ Docker/Composer/FreeIPA/docker-compose.yml | 23 +++++++++++++++++++ Docker/Composer/MongoDB/docker-compose.yml | 15 ++++++++++++ Docker/Composer/PLACEHOLDER | 0 .../Server Blocks/edu.libraryofcode.org.conf | 2 ++ 5 files changed, 49 insertions(+) create mode 100644 Docker/Composer/Cassandra/docker-compose.yml create mode 100644 Docker/Composer/FreeIPA/docker-compose.yml create mode 100644 Docker/Composer/MongoDB/docker-compose.yml create mode 100644 Docker/Composer/PLACEHOLDER diff --git a/Docker/Composer/Cassandra/docker-compose.yml b/Docker/Composer/Cassandra/docker-compose.yml new file mode 100644 index 0000000..b022bab --- /dev/null +++ b/Docker/Composer/Cassandra/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3.9" +services: + cassandra: + image: cassandra + restart: unless-stopped + volumes: + - "/var/lib/cassandra-1:/var/lib/cassandra" + hostname: cassandra + diff --git a/Docker/Composer/FreeIPA/docker-compose.yml b/Docker/Composer/FreeIPA/docker-compose.yml new file mode 100644 index 0000000..5506b65 --- /dev/null +++ b/Docker/Composer/FreeIPA/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3.9" +services: + freeipa: + image: "freeipa/freeipa-server:centos-8" + restart: "unless-stopped" + privileged: true + read_only: true + volumes: + - "/var/lib/ipa-data:/data:Z" + - "/var/lib/ipa-data/z/tmp:/tmp" + - "/sys/fs/cgroup:/sys/fs/cgroup:ro" + hostname: id.libraryofcode.org + sysctls: + - net.ipv6.conf.all.disable_ipv6=0 + ports: + - "7810:80/tcp" + - "7811:88/tcp" + - "7812:389/tcp" + - "7813:443/tcp" + - "7814:123/udp" + - "7815:464/tcp" + - "7816:636/udp" + - "7817:464/udp" diff --git a/Docker/Composer/MongoDB/docker-compose.yml b/Docker/Composer/MongoDB/docker-compose.yml new file mode 100644 index 0000000..4d5319d --- /dev/null +++ b/Docker/Composer/MongoDB/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.9" +services: + mongodb: + image: mongo + restart: unless-stopped + volumes: + - "/opt/docker/mongodb-1-repl/conf:/etc/mongo:" + - "/opt/docker/mongodb-1-repl/mongo-keyfile:/etc/mongo-keyfile" + - "/opt/docker/mongodb-1-repl/data:/var/lib/mongodb" + - "/opt/docker/mongodb-1-repl/logs:/var/log" + hostname: staff.libraryofcode.org + command: mongod --config /etc/mongo/mongod.conf + network_mode: "host" + #ports: + # - "27018:27017" diff --git a/Docker/Composer/PLACEHOLDER b/Docker/Composer/PLACEHOLDER new file mode 100644 index 0000000..e69de29 diff --git a/Nginx/Server Blocks/edu.libraryofcode.org.conf b/Nginx/Server Blocks/edu.libraryofcode.org.conf index 44cb390..055caa8 100644 --- a/Nginx/Server Blocks/edu.libraryofcode.org.conf +++ b/Nginx/Server Blocks/edu.libraryofcode.org.conf @@ -16,6 +16,8 @@ server { error_log /var/log/nginx/canvas.error.log; passenger_ruby /usr/local/bin/ruby2.4; passenger_load_shell_envvars off; + passenger_max_instances 3; + passenger_min_instances 2; #passenger_log_level 4; passenger_start_timeout 300; passenger_enabled on;