1
0
Fork 0

Add minimal Dockerfile and docker-compose

pull/1/head
Aaron Fischer 10 months ago
parent dd60967565
commit b4837655f9
No known key found for this signature in database
GPG Key ID: CB8E2DBACD93CE77
  1. 11
      Dockerfile
  2. 10
      docker-compose.yml

@ -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"]

@ -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…
Cancel
Save