dockerize #1

Merged
f merged 2 commits from dockerize into master 2021-11-16 23:54:16 +01:00
2 changed files with 21 additions and 0 deletions
Showing only changes of commit b4837655f9 - Show all commits

11
Dockerfile Normal file
View 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
View 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