Dockerize application

This commit is contained in:
raul 2024-06-10 12:43:26 +02:00
parent d1e4d64fd6
commit 3194998503
2 changed files with 31 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang:1.22-alpine
RUN mkdir /app
ADD . /app
WORKDIR /app
RUN go build -o main .
CMD ["/app/main", "server"]

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
version: '3'
networks:
tiamat:
driver: bridge
services:
tiamat:
container_name: "tiamat"
#image: "tiamat"
build:
context: .
dockerfile: "Dockerfile"
ports:
- 8080:8080
- 1302:1302
networks:
- tiamat
volumes:
- ./sample-config/:/root/.config/tiamat/