---
version: "2"
services:
phpmyadmin:
image: linuxserver/phpmyadmin:5.2.1
container_name: phpmyadmin
restart: unless-stopped
environment:
- TZ=Europe/London # Specify a timezone to use
- PUID=1000 # User ID to run as
- PMA_ARBITRARY=1 # Set to 1 to allow you to connect to any server. Setting to 0 will only allow you to connect to specified hosts
- PMA_ABSOLUTE_URI=https://phpmyadmin.example.com # Set the URL you will use to access the web UI
- PGID=1000 # Group ID to run as
volumes:
- /host/path/to/config:/config # Contains all relevant configuration files.
ports:
- 80:80/tcp # Web UI