# This file is ideal for development and testing. # --- DO NOT USE FOR PRODUCTION --- # however, you can use it as a guide to create a proper production environment. services: db: image: mariadb container_name: db environment: - MYSQL_ROOT_PASSWORD=123qwe - MYSQL_USER=webgui - MYSQL_PASSWORD=123qwe - MYSQL_DATABASE=www_example_com volumes: - ./share/create.sql:/docker-entrypoint-initdb.d/1.sql ports: - 3306 webgui: image: webgui container_name: webgui depends_on: - db volumes: - ../.:/data/WebGUI expose: - "80" nginx-proxy: image: nginx:latest container_name: nginx_proxy depends_on: - webgui volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro ports: - "80:80" #TODO: add ssl later #- "443:443" # TODO: serve staatic files directly from nginx #- ./www:/var/www/html:ro