diff --git a/Bitwarden/docker-compose.yml b/Bitwarden/docker-compose.yml new file mode 100644 index 0000000..bd25786 --- /dev/null +++ b/Bitwarden/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + +#Bitwarden () + bitwarden: + image: "vaultwarden/server:latest" + container_name: vaultwarden + volumes: + - ./bitwarden/:/data/ + restart: unless-stopped \ No newline at end of file diff --git a/Database/docker-compose.yml b/Database/docker-compose.yml new file mode 100644 index 0000000..688d1ef --- /dev/null +++ b/Database/docker-compose.yml @@ -0,0 +1,38 @@ +version: '3.8' + +services: + +#MongoDB (27017) + mongodb: + image: "mongo:latest" + container_name: mongoDB + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: rootpassword + ports: + - "27017:27017" + volumes: + - ./mongo/:/data/db + restart: unless-stopped + +#MySQL (3306) + phpMyAdmin () + mysql: + image: "mysql" + container_name: MySQL + environment: + MYSQL_ROOT_PASSWORD: rootpassword + MYSQL_DATABASE: test_db + ports: + - "3306:3306" + volumes: + - ./mysql/:/var/lib/mysql + restart: unless-stopped + + phpMyAdmin: + image: "phpmyadmin/phpmyadmin:latest" + container_name: phpMyAdmin + environment: + PMA_HOST: mysql + restart: unless-stopped + depends_on: + - mysql \ No newline at end of file diff --git a/Gitea/docker-compose.yml b/Gitea/docker-compose.yml new file mode 100644 index 0000000..61681d9 --- /dev/null +++ b/Gitea/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3.8' + +services: + +#gitea (222) + gitea: + image: gitea/gitea:latest + container_name: gitea + environment: + - APP_NAME="gitea" + - USER_UID=1000 + - USER_GID=1000 + - USER=git + - RUN_MODE=prod + - DOMAIN=git.luke-else.co.uk + - SSH_DOMAIN=git.luke-else.co.uk + - HTTP_PORT=3000 + - ROOT_URL=https://git.luke-else.co.uk + - SSH_PORT=222 + - SSH_LISTEN_PORT=22 + - DB_TYPE=sqlite3 + ports: + - "222:22" + volumes: + - ./gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + restart: unless-stopped \ No newline at end of file diff --git a/ReverseProxy/docker-compose.yml b/ReverseProxy/docker-compose.yml new file mode 100644 index 0000000..7408cd0 --- /dev/null +++ b/ReverseProxy/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3.8' + +services: + + #nginx (80, 443, 8080) + nginx: + image: 'jc21/nginx-proxy-manager:latest' + container_name: nginx + ports: + # These ports are in format : + - '80:80' # Public HTTP Port + - '443:443' # Public HTTPS Port + - '8080:81' # Admin Web Port + # Add any other Stream port you want to expose + # - '21:21' # FTP + # Uncomment the next line if you uncomment anything in the section + # environment: + # Uncomment this if you want to change the location of + # the SQLite DB file within the container + # DB_SQLITE_FILE: "/data/database.sqlite" + + # Uncomment this if IPv6 is not enabled on your host + # DISABLE_IPV6: 'true' + volumes: + - ./nginx/data:/data + - ./nginx/letsencrypt:/etc/letsencrypt + restart: unless-stopped \ No newline at end of file diff --git a/Websites/docker-compose.yml b/Websites/docker-compose.yml new file mode 100644 index 0000000..7ea3b3e --- /dev/null +++ b/Websites/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.8' + +services: + +#Websites luke-else.co.uk (8000) snexo.co.uk (8001) + luke-else.co.uk: + image: "php:apache" + container_name: luke-else.co.uk + volumes: + - ./luke-else.co.uk/:/var/www/html + restart: unless-stopped + + snexo.co.uk: + image: "php:apache" + container_name: snexo.co.uk + volumes: + - ./snexo.co.uk/:/var/www/html + restart: unless-stopped \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 36cd464..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,111 +0,0 @@ -version: '3.8' - -services: - - #nginx (80, 443, 8080) - nginx: - image: 'jc21/nginx-proxy-manager:latest' - container_name: nginx - ports: - # These ports are in format : - - '80:80' # Public HTTP Port - - '443:443' # Public HTTPS Port - - '8080:81' # Admin Web Port - # Add any other Stream port you want to expose - # - '21:21' # FTP - # Uncomment the next line if you uncomment anything in the section - # environment: - # Uncomment this if you want to change the location of - # the SQLite DB file within the container - # DB_SQLITE_FILE: "/data/database.sqlite" - - # Uncomment this if IPv6 is not enabled on your host - # DISABLE_IPV6: 'true' - volumes: - - ./nginx/data:/data - - ./nginx/letsencrypt:/etc/letsencrypt - restart: unless-stopped - -#MongoDB (27017) - mongodb: - image: "mongo:latest" - container_name: mongoDB - environment: - MONGO_INITDB_ROOT_USERNAME: root - MONGO_INITDB_ROOT_PASSWORD: rootpassword - ports: - - "27017:27017" - volumes: - - ./mongo/:/data/db - restart: unless-stopped - -#MySQL (3306) + phpMyAdmin () - mysql: - image: "mysql" - container_name: MySQL - environment: - MYSQL_ROOT_PASSWORD: rootpassword - MYSQL_DATABASE: test_db - ports: - - "3306:3306" - volumes: - - ./mysql/:/var/lib/mysql - restart: unless-stopped - - phpMyAdmin: - image: "phpmyadmin/phpmyadmin:latest" - container_name: phpMyAdmin - environment: - PMA_HOST: mysql - restart: unless-stopped - depends_on: - - mysql - -#Bitwarden rs () - bitwarden: - image: "vaultwarden/server:latest" - container_name: vaultwarden - volumes: - - ./bitwarden/:/data/ - restart: unless-stopped - -#gitea (222) - gitea: - image: gitea/gitea:latest - container_name: gitea - environment: - - APP_NAME="gitea" - - USER_UID=1000 - - USER_GID=1000 - - USER=git - - RUN_MODE=prod - - DOMAIN=git.luke-else.co.uk - - SSH_DOMAIN=git.luke-else.co.uk - - HTTP_PORT=3000 - - ROOT_URL=https://git.luke-else.co.uk - - SSH_PORT=222 - - SSH_LISTEN_PORT=22 - - DB_TYPE=sqlite3 - ports: - - "222:22" - volumes: - - ./gitea:/data - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro - restart: unless-stopped - -#Websites luke-else.co.uk (8000) snexo.co.uk (8001) - luke-else.co.uk: - image: "php:apache" - container_name: luke-else.co.uk - volumes: - - ./luke-else.co.uk/:/var/www/html - restart: unless-stopped - - snexo.co.uk: - image: "php:apache" - container_name: snexo.co.uk - volumes: - - ./snexo.co.uk/:/var/www/html - restart: unless-stopped -