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 volumes: db: public: networks: server: external: true backend: driver: bridge