-
Notifications
You must be signed in to change notification settings - Fork 0
/
.project.yaml
49 lines (49 loc) · 1.12 KB
/
.project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# yaml-language-server: $schema=https://raw.githubusercontent.com/dhhyi/devcontainer-creator/dist/language_schema.json
extends: dcc://go
devcontainer:
publish:
image: ghcr.io/dhhyi/recipe-db-devcontainer-recipes
labels:
org.opencontainers.image.source: https://github.com/dhhyi/recipe-db
initialize: go mod download -x
ports:
- 5000
environment:
TESTING: "true"
vscode:
settings:
peacock.remoteColor: "#730e31"
extensions:
- johnpapa.vscode-peacock
extras:
- traefik
- named-volumes
namedVolumes:
$HOME/go/pkg/mod/cache: recipe-db-recipes-go-cache
traefik:
network: intranet
labels:
http:
services:
recipe-db-recipes:
loadBalancer:
healthCheck:
interval: 10s
timeout: 1s
path: /health
routers:
recipes:
rule: PathPrefix(`/recipes`)
entrypoints: rest-internal
---
# yaml-language-server: $schema=../.scripts/project-schema.json
category: backend
precommit: |
go fmt
go build -o precommit.out
stat precommit.out
prettier:
ignore:
- go.mod
- go.sum
- "*.go"