Add compose and bake.hcl
This commit is contained in:
parent
ba7938dcf4
commit
c03f949344
3 changed files with 33 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
/config.toml
|
||||
/compose.yml
|
||||
/highscore-server
|
||||
/db
|
||||
|
|
15
compose.example.yml
Normal file
15
compose.example.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
services:
|
||||
highscore-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: git.snrd.eu/sunred/highscore-server:latest
|
||||
container_name: highscore-server
|
||||
network_mode: bridge
|
||||
volumes:
|
||||
- ./config.toml:/app/config.toml:ro
|
||||
- ./db:/app/db:rw
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080/tcp"
|
||||
- "[::1]:8080:8080/tcp"
|
||||
restart: unless-stopped
|
17
docker.bake.hcl
Normal file
17
docker.bake.hcl
Normal file
|
@ -0,0 +1,17 @@
|
|||
variable "REG" {
|
||||
default = "git.snrd.eu"
|
||||
}
|
||||
variable "REPO" {
|
||||
default = "sunred/higscore-server"
|
||||
}
|
||||
variable "TAG" {
|
||||
default = "latest"
|
||||
}
|
||||
|
||||
group "default" {
|
||||
targets = ["production"]
|
||||
}
|
||||
target "production" {
|
||||
output = ["type=docker"]
|
||||
tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"]
|
||||
}
|
Loading…
Reference in a new issue