Add healthchecks and coder

This commit is contained in:
Tobias Reisinger 2022-11-24 15:22:31 +01:00
parent acc83618f3
commit e7c78aa678
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
16 changed files with 245 additions and 1 deletions

9
coder/.env Normal file
View file

@ -0,0 +1,9 @@
CODER_ADDRESS="0.0.0.0:7080"
CODER_ACCESS_URL="https://coder.serguzim.me"
CODER_WILDCARD_ACCESS_URL="*.coder.serguzim.me"
CODER_PG_CONNECTION_URL="postgres://coder:xxxxxx@db.serguzim.me:5432/coder?sslmode=verify-full"
CODER_OIDC_ISSUER_URL="https://auth.serguzim.me/application/o/coder-serguzim-me/"
CODER_OIDC_CLIENT_ID=
CODER_OIDC_CLIENT_SECRET=

24
coder/docker-compose.yml Normal file
View file

@ -0,0 +1,24 @@
version: '3'
services:
app:
image: ghcr.io/coder/coder:latest
restart: always
labels:
com.centurylinklabs.watchtower.enable: true
ports:
- "7080:7080"
env_file:
- .env
- .secret.env
group_add:
- "972" # docker group on host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
apps:
aliases:
- coder
networks:
apps:
external: true