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.
- Host: GitHub
- URL: https://github.com/automadcms/automad-docker
- Owner: automadcms
- License: mit
- Created: 2021-05-05T19:14:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-17T12:57:55.000Z (about 1 year ago)
- Last Synced: 2025-05-17T13:52:02.371Z (about 1 year ago)
- Topics: automad, docker, docker-image
- Language: Dockerfile
- Homepage:
- Size: 27.3 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```