dockerize #1
2 changed files with 21 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM golang:alpine AS build
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN GOOS=linux go build -o matrix-alertmanager-receiver
|
||||
|
||||
FROM alpine
|
||||
WORKDIR /app
|
||||
COPY ./config.toml.sample /etc/matrix-alertmanager-receiver.toml
|
||||
COPY --from=build /app/matrix-alertmanager-receiver /app/matrix-alertmanager-receiver
|
||||
EXPOSE 9088
|
||||
CMD ["./matrix-alertmanager-receiver"]
|
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
version: "3.3"
|
||||
services:
|
||||
matrix-receiver:
|
||||
build: .
|
||||
image: matrix-alertmanager-receiver:latest
|
||||
restart: always
|
||||
volumes:
|
||||
- ./config.toml:/etc/matrix-alertmanager-receiver.toml
|
||||
ports:
|
||||
- 9088:9088
|
Loading…
Reference in a new issue