Skip to content

Instantly share code, notes, and snippets.

@dbazhenov
dbazhenov / docker-compose.yaml
Created March 18, 2025 14:18
Percona Server for MongoDB Replica Set + PMM 3
version: '3'
services:
pmm-server:
image: percona/pmm-server:3
platform: "linux/amd64" # Specifies that Docker should use the image for the amd64 architecture, which is necessary if the container doesn't support ARM and your host system is ARM (e.g., Mac with Apple Silicon).
container_name: pmm-server
ports:
- 8080:80
- 443:8443
@dbazhenov
dbazhenov / docker-compose.yaml
Created March 18, 2025 14:16
Single Instance MongoDB 8 + PMM 3
version: '3'
services:
pmm-server:
image: percona/pmm-server:3
platform: "linux/amd64" # Specifies that Docker should use the image for the amd64 architecture, which is necessary if the container doesn't support ARM and your host system is ARM (e.g., Mac with Apple Silicon).
container_name: pmm-server
ports:
- 8080:80
- 443:8443
@dbazhenov
dbazhenov / Dockerfile
Created March 4, 2023 14:30
Docker: Nginx + PHP-FPM + Mongo
FROM arm64v8/php:8.2-fpm
RUN apt-get -y update \
&& apt-get install -y libssl-dev pkg-config libzip-dev unzip git
RUN pecl install zlib zip mongodb \
&& docker-php-ext-enable zip \
&& docker-php-ext-enable mongodb
# SETUP PHP-FPM CONFIG SETTINGS (max_children / max_requests)
@dbazhenov
dbazhenov / Dockerfile
Last active February 20, 2023 08:34
Nginx + PHP 8.2 + MongoDB 6 + Composer
FROM php:8.2-fpm
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN apt-get update
RUN apt-get install -y libssl-dev pkg-config git
RUN apt-get install -y unzip
version: "3"
services:
pmm-server:
image: "perconalab/pmm-server:dev-latest"
ports:
- "443:443"
environment:
- SERVER_USER=pmm
- SERVER_PASSWORD=pmm