# sudo docker compose down && sudo docker compose build --no-cache && sudo docker compose up -d --force-recreate services: nginx: build: ./nginx #image: nginx:1.27.1 #nginx:latest container_name: aLeaf-nginx #ports: # - 84:80 restart: always volumes: - ./php/www:/var/www/html/ # This will overwrite default.conf with the one on the container, BUT "COPY" in dockerfile makes it ours by default - ./nginx/default.conf:/etc/nginx/conf.d/default.conf php: build: ./php #image: php:8.3-fpm container_name: aLeaf-php expose: - 9000 volumes: - ./php/www:/var/www/html/ db: #build: ./db image: mariadb:10.7 container_name: aLeaf-mariadb volumes: #- ./db/mysql:/var/lib/mysql # If sharing from windows host, not gonna work. Needs to be on unixFS - /home/nathan/docker_vol/aleaf_mariadb:/var/lib/mysql # bind-mount any sql files that should be run while initializing # Can omit create database as done via environment - ./db/schema.sql:/docker-entrypoint-initdb.d/schema.sql expose: - 3306 environment: MYSQL_ROOT_PASSWORD: mariadb MYSQL_DATABASE: ecomdb adminer: container_name: aLeaf-adminer image: adminer restart: always #ports: # - "4141:4141" # - "8080:8080" environment: ADMINER_DEFAULT_SERVER: aLeaf-mariadb # docker network create -d bridge proxy # Shared with the NPM instance networks: default: external: true name: proxy