add logging

This commit is contained in:
2022-11-21 14:09:03 +01:00
parent dce155979e
commit af875e4688
14 changed files with 244 additions and 23 deletions

View File

@@ -0,0 +1,7 @@
FROM golang
COPY . .
RUN go build cmd/main.go
CMD [ "main" ]

View File

@@ -0,0 +1,2 @@
.cuddle/
main/

View File

@@ -0,0 +1,17 @@
version: '3.7'
services:
{{ service }}:
image: {{ image }}
ports:
- {{ port }}
env_file: ".env"
restart: always
depends_on:
- db
db:
image: postgres:13.5
restart: always
env_file: ".env"
volumes:
- ./data/postgres:/var/lib/postgresql/data