Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Caddy version var
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Sep 25, 2017
1 parent 35e9bb4 commit 15183b2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,23 @@ Run Caddy container:
```bash
docker run -d -p 80:80 -p 443:443 -p 9180:9180 --name caddy stefanprodan/caddy
```

### Compose

Build image:

```bash
CADDY_VERSION=0.10.9 docker-compose build caddy
```

Deploy container:

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

Remove container, volumes and image:

```bash
docker-compose down -v --rmi all
```
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ services:
context: .
dockerfile: Dockerfile
args:
CADDY_VERSION: 0.10.9
image: stefanprodan/caddy:0.10.9
CADDY_VERSION: ${CADDY_VERSION:-0.10.9}
image: stefanprodan/caddy:${CADDY_VERSION:-0.10.9}
container_name: caddy
ports:
- 80:80
Expand Down

0 comments on commit 15183b2

Please sign in to comment.