update staging envs to split staging table from production
All checks were successful
Deploy / CreateImage (push) Successful in 1m43s
Deploy / DeployService (push) Successful in 1m13s

This commit is contained in:
skeris 2024-12-09 16:20:57 +03:00
parent 9ff5fdb551
commit 18868d3fdf
2 changed files with 12 additions and 12 deletions

@ -1,9 +1,9 @@
FROM gitea.pena:3000/penadevops/container-images/golang:main as build
FROM gitea.pena/penadevops/container-images/golang:main as build
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o trashlog
FROM gitea.pena:3000/penadevops/container-images/alpine:main as prod
FROM gitea.pena/penadevops/container-images/alpine:main as prod
RUN apk --no-cache add tzdata
COPY --from=build /app/trashlog .
CMD ["/trashlog"]

@ -1,19 +1,19 @@
version: "3.3"
services:
trashlog:
hostname: trashlog
container_name: trashlog
image: gitea.pena:3000/penaside/trashlog/staging:$GITHUB_RUN_NUMBER
image: gitea.pena/penaside/trashlog/staging:140
tty: true
environment:
- APP_ADDR=:1488
- APP_NAME=trashlog
- DEVELOPMENT=false
- CH_CRED=clickhouse://clickhouse.pena:9000/default?sslmode=disable
DEVELOPMENT: false
APP_NAME: trashlog
GRPC_URL: ":7113"
ADMIN_HTTP_URL: "0.0.0.0:8000"
CLICKHOUSE_URL: "clickhouse://clickhouse.pena:9000/default?sslmode=disable"
DB_PATH: "./recover.bolt"
CLICKHOUSE_TABLE_MAIN_NAME: "staging"
volumes:
- /etc/timezone:/etc/timezone:ro
ports:
- 7113:1488
networks:
- default
- 7113:7113
- 7114:8000