services: # Web Server webserver: image: saintfrater/php8-3-23-custom:latest container_name: proj01-webserver restart: unless-stopped ports: - 80:80 tty: true stdin_open: true volumes: - public:/var/www/html environment: - TZ=Europe/Brussels depends_on: - db networks: - server - backend # MariaDB Server db: image: mariadb:latest container_name: proj01-db restart: unless-stopped environment: # update with YOUR requiered db informations - MARIADB_DATABASE=__YOUR_DATABASE_NAME__ # So you don't have to use root, but you can if you like - MARIADB_USER=__YOUR_APPLICATION_USER__ # You can use whatever password you like - MARIADB_PASSWORD=__YOUR_APPLICATION_DB_PASSWORD__ # Password for root access - MARIADB_ROOT_HOST=localhost - MARIADB_ROOT_PASSWORD=__YOUR_DB_ROOT_PASSWORD__ volumes: - db:/var/lib/mysql networks: - backend # phpMyAdmin phpmyadmin: image: phpmyadmin container_name: proj01-phpmyadmin restart: unless-stopped ports: - 8080:80 environment: - TZ=Europe/Brussels - # define the SQL host name & connection port - PMA_HOST=proj01-db - PMA_PORT=3306 # credentials for connection - PMA_USER=__YOUR_APPLICATION_USER__ or root - PMA_PASSWORD=__YOUR_APPLICATION_DB_PASSWORD__ or __YOUR_DB_ROOT_PASSWORD__ depends_on: - db networks: - server - backend volumes: db: public: networks: server: external: true backend: driver: bridge