An open API service indexing awesome lists of open source software.

https://github.com/automadcms/automad-docker

The official Automad Docker image.
https://github.com/automadcms/automad-docker

automad docker docker-image

Last synced: 11 months ago
JSON representation

The official Automad Docker image.

Awesome Lists containing this project

README

          

# Automad

The official Docker image for [Automad](https://automad.org) including **Nginx** and **PHP**.

## Building

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

```bash
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:

```bash
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:

```bash
docker logs mysite
```

Your can now navigate to [localhost](http://localhost) to view your new site.

### Docker Compose

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

```yaml
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:

```bash
docker compose up -d
```