Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.2 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.2 KB

Automad

The official Docker image for Automad including Nginx and PHP.

Building

In order to build this image with a specific version, run the following command:

docker build --build-arg version=v2.x-dev -t automad/automad:v2.x-dev .

Using this Image

You can create a container called mysite and start it by using the following command:

docker run -dp 80:80 -v ./app:/app --name mysite automad/automad

This will essentially make your site available at port 80 and mount a directory called /app for data persistence. A new user account for the Automad dashboard will be created automatically. The account details will be logged by the running container. You can show these logs using the following command:

docker logs mysite

Your can now navigate to localhost to view your new site.

Docker Compose

Alternatively you can also use docker compose with the following configuration:

version: "3"
services:
  app:
    container_name: automad
    image: automad/automad:latest
    ports:
      - 80:80
    volumes:
      - ./app:/app

And then in order to start the container:

docker compose up -d