docker-compose.yml 535 Bytes
version: '2'

services:
  tinyshop:
    build: tinyshop/
    volumes:
      - ./tinyshop/html:/var/www/html
    ports:
      - "8080:80"
    networks:
      - docker_tinyshop

  mariadb:
    build: mariadb/
    environment:
      - MYSQL_ROOT_PASSWORD=root_password
      - MYSQL_DATABASE=tinyshop
      - MYSQL_USER=tinyshop
      - MYSQL_PASSWORD=tinyshop
    volumes:
      - ./mariadb/database:/var/lib/mysql
    # ports:
    #   - "3306:3306"
    networks:
      - docker_tinyshop

networks:
  docker_tinyshop:
    driver: bridge