It’s somewhat difficult to paste this properly here, even when using the ‘insert code’ option, and I am unable to upload a picture either, without hosting it somewhere else and putting a link to it. I can see why people use Discord instead. So here is is anyway. Do you need the Dockerfile?
version: ‘3.8’
Services
services:
# PHP Service
php:
build:
dockerfile: php-dockerfile
volumes:
- './php-files:/var/www/html'
depends_on:
- mariadb
# Nginx Service
nginx:
image: nginx:latest
ports:
- 80:80
links:
- 'php'
volumes:
- './php-files:/var/www/html'
- './nginx-conf:/etc/nginx/conf.d'
depends_on:
- php
# MariaDB Service
mariadb:
image: mariadb:10.9
environment:
MARIADB_ROOT_PASSWORD: 'SOME_PASSWORD'
MARIADB_USER: 'SOME_USER'
MARIADB_PASSWORD: 'SOME_PASSWORD'
MARIADB_DATABASE: 'SOME_DBNAME'
volumes:
- "./db:/var/lib/mysql"
Volumes
volumes:
mysqldata: