Commit 2bd5de6a authored by Jakob Moser's avatar Jakob Moser
Browse files

Add Docker for a quick test environment

parent d3f1844d
Loading
Loading
Loading
Loading

Dockerfile

0 → 100644
+7 −0
Original line number Diff line number Diff line
# Start with the php image containing an Apache server
FROM php:apache

# Enable the Apache module to rewrite requests, because we need it in a .htaccess
RUN a2enmod rewrite

# That's it. Everything else will be done by Docker Compose.

docker-compose.yml

0 → 100644
+14 −0
Original line number Diff line number Diff line
version: "3.9"

services:
  status:
    build: .
    volumes:
      # Mount the current directory as document root into the container.
      # This way, updates to the code are immediately also inside the container
      - .:/var/www/html
    ports:
      # Publish what is inside the container on port 80 outside the container on port 8080, but only
      # to 127.0.0.1 (i.e. localhost). This means you won't expose the status page to anyone else
      # except your own PC while working on it.
      - "127.0.0.1:8080:80"